unpack

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyData = errors.New("empty data")
	EmtyKey   = errors.New("key too short")
)
View Source
var (
	ErrIncompletePacket = errors.New("incomplete packet")
	ErrTooLargePacket   = errors.New("too large packet")
)

Functions

func Decode

func Decode(key []byte, reader io.Reader) ([]byte, error)

func Encode

func Encode(key []byte, body []byte) ([]byte, error)

func Relay

func Relay(token []byte, src, dest net.Conn)

Relay src --> encode --> dest dest --> decode --> src

Types

This section is empty.

Jump to

Keyboard shortcuts

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