chore: tunnel recorder & slight refactor
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-09-27 17:49:59 -04:00
parent 20c1388cf4
commit 0722e5f032
17 changed files with 725 additions and 285 deletions

26
tunnel/stream.go Normal file
View File

@@ -0,0 +1,26 @@
package tunnel
import (
"io"
"net"
)
var _ Stream = (*streamImpl)(nil)
type Stream interface {
io.ReadWriteCloser
Source() string
}
func NewStream(conn net.Conn, source string) Stream {
return &streamImpl{conn, source}
}
type streamImpl struct {
net.Conn
source string
}
func (s *streamImpl) Source() string {
return s.source
}