codecs

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenericGobCodec added in v0.4.4

type GenericGobCodec struct{}

GenericGobCodec implements the LoginCodec interface for using the gob LoginCodec.

func (*GenericGobCodec) Decode added in v0.4.4

func (gb *GenericGobCodec) Decode(r io.Reader, s interface{}) error

Decode decodes giving data into provided session instance.

func (*GenericGobCodec) Encode added in v0.4.4

func (gb *GenericGobCodec) Encode(w io.Writer, s interface{}) error

Encode encodes giving session using the internal gob format. Returning provided data.

type GenericJsonCodec added in v0.4.4

type GenericJsonCodec struct{}

GenericJsonCodec implements the LoginCodec interface for using the Json LoginCodec.

func (*GenericJsonCodec) Decode added in v0.4.4

func (gb *GenericJsonCodec) Decode(r io.Reader, s interface{}) error

Decode decodes giving data into provided session instance.

func (*GenericJsonCodec) Encode added in v0.4.4

func (gb *GenericJsonCodec) Encode(w io.Writer, s interface{}) error

Encode encodes giving session using the internal Json format. Returning provided data.

type GenericMsgPackCodec added in v0.4.4

type GenericMsgPackCodec struct{}

GenericMsgPackCodec implements the LoginCodec interface for using the MsgPack LoginCodec.

func (*GenericMsgPackCodec) Decode added in v0.4.4

func (gb *GenericMsgPackCodec) Decode(r io.Reader, s interface{}) error

Decode decodes giving data into provided session instance.

func (*GenericMsgPackCodec) Encode added in v0.4.4

func (gb *GenericMsgPackCodec) Encode(w io.Writer, s interface{}) error

Encode encodes giving session using the internal MsgPack format. Returning provided data.

type MessageGobCodec added in v0.4.4

type MessageGobCodec struct{}

func (*MessageGobCodec) Decode added in v0.4.4

func (j *MessageGobCodec) Decode(b []byte) (sabuhp.Message, error)

func (*MessageGobCodec) Encode added in v0.4.4

func (j *MessageGobCodec) Encode(message sabuhp.Message) ([]byte, error)

type MessageJsonCodec added in v0.4.4

type MessageJsonCodec struct{}

func (*MessageJsonCodec) Decode added in v0.4.4

func (j *MessageJsonCodec) Decode(b []byte) (sabuhp.Message, error)

func (*MessageJsonCodec) Encode added in v0.4.4

func (j *MessageJsonCodec) Encode(message sabuhp.Message) ([]byte, error)

type MessageMsgPackCodec added in v0.4.4

type MessageMsgPackCodec struct{}

func (*MessageMsgPackCodec) Decode added in v0.4.4

func (j *MessageMsgPackCodec) Decode(b []byte) (sabuhp.Message, error)

func (*MessageMsgPackCodec) Encode added in v0.4.4

func (j *MessageMsgPackCodec) Encode(message sabuhp.Message) ([]byte, error)

Jump to

Keyboard shortcuts

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