Documentation ¶
Index ¶
- func NewBufferDecoder(buf *bytes.Buffer) mux.BufferDecoder
- func NewBufferEncoder(buf *bytes.Buffer) mux.BufferEncoder
- func NewClient(conn net.Conn, config *mux.Config) (mux.Client, error)
- func NewConn(conn net.Conn, config *mux.Config) (mux.Conn, error)
- func NewDefaultClient(conn net.Conn) (mux.Client, error)
- func NewDefaultConn(conn net.Conn) (mux.Conn, error)
- func NewDefaultServer(conn net.Conn) (mux.Server, error)
- func NewServer(conn net.Conn, config *mux.Config) (mux.Server, error)
- type BufferDecoder
- type BufferEncoder
- type Pool
- func (p *Pool) NewBufferDecoder() mux.BufferDecoder
- func (p *Pool) NewBufferEncoder() mux.BufferEncoder
- func (p *Pool) NewClient(conn net.Conn, config *mux.Config) (mux.Client, error)
- func (p *Pool) NewDecoder(r io.Reader) mux.Decoder
- func (p *Pool) NewEncoder(w io.Writer) mux.Encoder
- func (p *Pool) NewReceiver(ch interface{}) mux.Receiver
- func (p *Pool) NewServer(conn net.Conn, config *mux.Config) (mux.Server, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBufferDecoder ¶
func NewBufferDecoder(buf *bytes.Buffer) mux.BufferDecoder
NewBufferDecoder creates a decoder
func NewBufferEncoder ¶
func NewBufferEncoder(buf *bytes.Buffer) mux.BufferEncoder
NewBufferEncoder creates a encoder
func NewDefaultClient ¶
NewDefaultClient creates a *mux.Client using gob encoding
func NewDefaultConn ¶
NewDefaultConn creates a new mux.Conn using gob encoding with default configuration
func NewDefaultServer ¶
NewDefaultServer creates a *mux.Client using gob encoding
Types ¶
type BufferDecoder ¶
BufferDecoder is used to decode bytes to values
type BufferEncoder ¶
BufferEncoder is used to encode values to bytes
type Pool ¶
type Pool struct { }
func (*Pool) NewBufferDecoder ¶
func (p *Pool) NewBufferDecoder() mux.BufferDecoder
func (*Pool) NewBufferEncoder ¶
func (p *Pool) NewBufferEncoder() mux.BufferEncoder
func (*Pool) NewReceiver ¶
Click to show internal directories.
Click to hide internal directories.