frame

package
v0.0.0-...-012d1c6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrIncomplete = errors.New("frame data incomplete")
View Source
var ErrOverflow = errors.New("frame overflow")

Functions

func SetDefault

func SetDefault(r Frame)

Types

type Frame

type Frame interface {
	Name() string
	Encode(b *buffer.Buffer) error
	Decode(b *buffer.Buffer) (*buffer.Buffer, error)
}

Frame 用于粘包处理

func Default

func Default() Frame

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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