Versions in this module Expand all Collapse all v0 v0.0.7 Sep 10, 2022 v0.0.6 Sep 10, 2022 v0.0.5 Sep 10, 2022 v0.0.4 Sep 9, 2022 v0.0.3 Sep 9, 2022 Changes in this version + var DefaultLogger = &logger type Connection + func (c *Connection) SetLogger(logger Logger) + type Logger interface + Debug func(args ...interface{}) + Debugf func(format string, args ...interface{}) + Error func(args ...interface{}) + Errorf func(format string, args ...interface{}) + Fatal func(args ...interface{}) + Fatalf func(format string, args ...interface{}) + Info func(args ...interface{}) + Infof func(format string, args ...interface{}) + Panic func(args ...interface{}) + Panicf func(format string, args ...interface{}) + Trace func(args ...interface{}) + Tracef func(format string, args ...interface{}) type Manager + func (m *Manager) SetLogger(logger Logger) v0.0.2 Sep 9, 2022 Changes in this version type Type + func (t Type) String() string + type WrongDataFrameTypeError struct + ShouldBe Type + func (w WrongDataFrameTypeError) Error() string v0.0.1 Sep 9, 2022 Changes in this version + type Connection struct + ID ID + RX <-chan *DataFrame + TX chan<- *DataFrame + func (c *Connection) Close() error + func (c *Connection) Read(p []byte) (int, error) + func (c *Connection) Write(p []byte) (int, error) + type DataFrame struct + ID ID + Payload []byte + Type Type + func (d *DataFrame) Decode(r io.Reader) error + func (d *DataFrame) Encode(w io.Writer) error + func (d *DataFrame) Read(p []byte) (int, error) + func (d *DataFrame) Write(p []byte) (int, error) + type ID string + func NewID() ID + type Manager struct + Connections map[ID]*Connection + Tunnel io.ReadWriter + func NewManager(tun io.ReadWriter) *Manager + func (m *Manager) Accept() (*Connection, error) + func (m *Manager) Close() error + func (m *Manager) Connect() (*Connection, error) + func (m *Manager) Run() + type Type uint8 + const TypeClosed + const TypeConnected + const TypeInvalid + const TypeNormal + const TypeRequest