codec

package
v0.0.0-...-fc7dab2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MagicWordLen = 8
View Source
const Name = "proto-enc"

Name is the name registered for the proto compressor.

Variables

View Source
var (
	ErrEmptyEncKey = errors.New("codec: empty encryption key")
)

Functions

func NewPacket

func NewPacket(nodeId i.NodeId, sId i.SessionId, payload interface{}, encKey []byte) *packet

func NewPassthroughPacker

func NewPassthroughPacker() *packet

Types

This section is empty.

Jump to

Keyboard shortcuts

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