decoder

package
v6.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2021 License: MPL-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, buf []byte) (packet.Packet, error)

Types

type Packet

type Packet struct {
	// contains filtered or unexported fields
}

func (Packet) Err

func (p Packet) Err() error

func (Packet) Less

func (local Packet) Less(remote btree.Item) bool

func (Packet) Value

func (p Packet) Value() interface{}

type StatRecorder

type StatRecorder interface {
	Add(float64)
}

type Sync

type Sync struct {
	// contains filtered or unexported fields
}

func New

func New(maxPacketSize int) *Sync

func (*Sync) Decode

func (s *Sync) Decode(r io.Reader) (packet.Packet, error)

Jump to

Keyboard shortcuts

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