Documentation ¶
Index ¶
- func NewTCPTransport(port int, handler func(Metadata) error) (net.Listener, error)
- func NewTLSTransport(ctx context.Context, cn string, port int, logger *zap.Logger, ...) (net.Listener, error)
- func NewWSSTransport(ctx context.Context, cn string, port int, logger *zap.Logger, ...) (net.Listener, error)
- func NewWSTransport(port int, handler func(Metadata) error) (net.Listener, error)
- type Metadata
- type TimeoutReadWriteCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTCPTransport ¶
func NewTLSTransport ¶
func NewWSSTransport ¶
Types ¶
type Metadata ¶
type Metadata struct { Name string Encrypted bool EncryptionState *tls.ConnectionState RemoteAddress string Channel TimeoutReadWriteCloser Endpoint string }
type TimeoutReadWriteCloser ¶
type TimeoutReadWriteCloser interface { SetDeadline(time.Time) error io.ReadWriteCloser }
Click to show internal directories.
Click to hide internal directories.