gob

package
v0.0.0-...-3eb68d7 Latest Latest
Warning

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

Go to latest
Published: May 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

type Buffer struct {
	*bytes.Buffer
}

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder() *Decoder

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder() *Encoder

type MsgHandler

type MsgHandler func([]interface{})

type MsgInfo

type MsgInfo struct {
	// contains filtered or unexported fields
}

type MsgRaw

type MsgRaw struct {
	// contains filtered or unexported fields
}

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

func NewProcessor

func NewProcessor() *Processor

func (*Processor) Marshal

func (p *Processor) Marshal(enc *Encoder, msg interface{}) ([][]byte, error)

goroutine safe

func (*Processor) Register

func (p *Processor) Register(msg interface{}) string

It's dangerous to call the method on routing or marshaling (unmarshaling)

func (*Processor) Route

func (p *Processor) Route(msg interface{}, userData interface{}) error

goroutine safe

func (*Processor) SetHandler

func (p *Processor) SetHandler(msg interface{}, msgHandler MsgHandler)

It's dangerous to call the method on routing or marshaling (unmarshaling)

func (*Processor) SetRawHandler

func (p *Processor) SetRawHandler(msg interface{}, msgRawHandler MsgHandler)

It's dangerous to call the method on routing or marshaling (unmarshaling)

func (*Processor) SetRouter

func (p *Processor) SetRouter(msg interface{}, msgRouter *chanrpc.Server)

It's dangerous to call the method on routing or marshaling (unmarshaling)

func (*Processor) Unmarshal

func (p *Processor) Unmarshal(dec *Decoder, data []byte) (interface{}, error)

goroutine safe

Jump to

Keyboard shortcuts

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