Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogger = &logger{}
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct {
RX <-chan *DataFrame
TX chan<- *DataFrame
ID ID
// contains filtered or unexported fields
}
func (*Connection) Close ¶
func (c *Connection) Close() error
func (*Connection) SetLogger ¶ added in v0.0.3
func (c *Connection) SetLogger(logger Logger)
type Logger ¶ added in v0.0.3
type Logger interface {
Trace(args ...interface{})
Tracef(format string, args ...interface{})
Debug(args ...interface{})
Debugf(format string, args ...interface{})
Info(args ...interface{})
Infof(format string, args ...interface{})
Error(args ...interface{})
Errorf(format string, args ...interface{})
Fatal(args ...interface{})
Fatalf(format string, args ...interface{})
Panic(args ...interface{})
Panicf(format string, args ...interface{})
}
type Manager ¶
type Manager struct {
Tunnel io.ReadWriter
Connections map[ID]*Connection
// contains filtered or unexported fields
}
func NewManager ¶
func NewManager(tun io.ReadWriter) *Manager
func (*Manager) Accept ¶
func (m *Manager) Accept() (*Connection, error)
func (*Manager) Connect ¶
func (m *Manager) Connect() (*Connection, error)
type WrongDataFrameTypeError ¶ added in v0.0.2
type WrongDataFrameTypeError struct {
ShouldBe Type
}
func (WrongDataFrameTypeError) Error ¶ added in v0.0.2
func (w WrongDataFrameTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.