bundle

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BundleFlagNetworkMainnet = 0x0001
	BundleFlagNetworkTestnet = 0x0002
	BundleFlagCarrierLibP2P  = 0x0010
	BundleFlagCompressed     = 0x0100
	BundleFlagBroadcasted    = 0x0200
	BundleFlagHandshaking    = 0x0400
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

type Bundle struct {
	Flags      int
	SequenceNo int
	Message    message.Message
}

func NewBundle

func NewBundle(msg message.Message) *Bundle

func (*Bundle) BasicCheck added in v0.15.0

func (b *Bundle) BasicCheck() error

func (*Bundle) CompressIt

func (b *Bundle) CompressIt()

func (*Bundle) Decode

func (b *Bundle) Decode(r io.Reader) (int, error)

func (*Bundle) Encode

func (b *Bundle) Encode() ([]byte, error)

func (*Bundle) SetSequenceNo added in v0.18.3

func (b *Bundle) SetSequenceNo(seqNo int)

func (*Bundle) String added in v0.15.0

func (b *Bundle) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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