feat: add tunnel monitor web ui
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -10,17 +10,23 @@ var _ Stream = (*streamImpl)(nil)
|
||||
type Stream interface {
|
||||
io.ReadWriteCloser
|
||||
Source() string
|
||||
Target() string
|
||||
}
|
||||
|
||||
func NewStream(conn net.Conn, source string) Stream {
|
||||
return &streamImpl{conn, source}
|
||||
func NewStream(conn net.Conn, source, target string) Stream {
|
||||
return &streamImpl{conn, source, target}
|
||||
}
|
||||
|
||||
type streamImpl struct {
|
||||
net.Conn
|
||||
source string
|
||||
target string
|
||||
}
|
||||
|
||||
func (s *streamImpl) Source() string {
|
||||
return s.source
|
||||
}
|
||||
|
||||
func (s *streamImpl) Target() string {
|
||||
return s.target
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user