Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CarrierConn ¶
type CarrierListener ¶
type CarrierListener interface { Addr() net.Addr Accept() CarrierConn }
type CarrierTransport ¶
type CarrierTransport interface { Listen(addr net.Addr) CarrierListener Dial(addr net.Addr) (CarrierConn, error) }
type ChunkCodec ¶
type ChunkCodec struct{}
ChunkCodec
func (ChunkCodec) NewDecoder ¶
func (ChunkCodec) NewDecoder() Decoder
func (ChunkCodec) NewEncoder ¶
func (ChunkCodec) NewEncoder() Encoder
type ChunkDecoder ¶
type ChunkDecoder struct{}
ChunkDecoder
func (ChunkDecoder) Decode ¶
func (ChunkDecoder) Decode(r []byte, v interface{}) error
type ChunkEncoder ¶
type ChunkEncoder struct{}
ChunkEncoder
func (ChunkEncoder) Encode ¶
func (ChunkEncoder) Encode(v interface{}) ([]byte, error)
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func NewConn ¶
func NewConn(carrier CarrierConn, codec Codec) *Conn
func (*Conn) RemoteAddr ¶
type GobCodec ¶
type GobCodec struct{}
GobCodec
func (GobCodec) NewDecoder ¶
func (GobCodec) NewEncoder ¶
type GobDecoder ¶
type GobDecoder struct {
// contains filtered or unexported fields
}
GobDecoder
func NewGobDecoder ¶
func NewGobDecoder() *GobDecoder
func (*GobDecoder) Decode ¶
func (g *GobDecoder) Decode(p []byte, v interface{}) error
type GobEncoder ¶
type GobEncoder struct {
// contains filtered or unexported fields
}
GobEncoder
func NewGobEncoder ¶
func NewGobEncoder() *GobEncoder
func (*GobEncoder) Encode ¶
func (g *GobEncoder) Encode(v interface{}) ([]byte, error)
type Listener ¶
type Listener struct { CarrierListener // contains filtered or unexported fields }
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func NewTransport ¶
func NewTransport(sub CarrierTransport, codec Codec) *Transport
Click to show internal directories.
Click to hide internal directories.