codec

package
v0.0.0-...-6dd53b5 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(typ message.PacketType, payload proto.Message) []byte

Encode encodes the proto message into binary format ENCODE FORMAT: TYPE | PAYLOAD TODO: use a more effective encoding format

func EncodeRaw

func EncodeRaw(payload []byte) []byte

EncodeRaw encode the raw data into binary format

Types

type Reseter

type Reseter interface {
	Reset()
}

Reseter represents the proto.Message

Jump to

Keyboard shortcuts

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