gob

package
v0.0.0-...-8c2c289 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2015 License: MIT Imports: 5 Imported by: 3

Documentation

Index

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 NewClient

func NewClient(conn net.Conn, config *mux.Config) (mux.Client, error)

func NewConn

func NewConn(conn net.Conn, config *mux.Config) (mux.Conn, error)

NewConn creates a new mux.Conn using gob encoding

func NewDefaultClient

func NewDefaultClient(conn net.Conn) (mux.Client, error)

NewDefaultClient creates a *mux.Client using gob encoding

func NewDefaultConn

func NewDefaultConn(conn net.Conn) (mux.Conn, error)

NewDefaultConn creates a new mux.Conn using gob encoding with default configuration

func NewDefaultServer

func NewDefaultServer(conn net.Conn) (mux.Server, error)

NewDefaultServer creates a *mux.Client using gob encoding

func NewServer

func NewServer(conn net.Conn, config *mux.Config) (mux.Server, error)

Types

type BufferDecoder

type BufferDecoder struct {
	*bytes.Buffer
	*gob.Decoder
}

BufferDecoder is used to decode bytes to values

type BufferEncoder

type BufferEncoder struct {
	*bytes.Buffer
	*gob.Encoder
}

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) NewClient

func (p *Pool) NewClient(conn net.Conn, config *mux.Config) (mux.Client, error)

func (*Pool) NewDecoder

func (p *Pool) NewDecoder(r io.Reader) mux.Decoder

func (*Pool) NewEncoder

func (p *Pool) NewEncoder(w io.Writer) mux.Encoder

func (*Pool) NewReceiver

func (p *Pool) NewReceiver(ch interface{}) mux.Receiver

func (*Pool) NewServer

func (p *Pool) NewServer(conn net.Conn, config *mux.Config) (mux.Server, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL