parse

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: BSD-2-Clause, BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxMessageParts = 255

Variables

This section is empty.

Functions

This section is empty.

Types

type Partitioner

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

func NewPartitioner

func NewPartitioner(kv *versioned.KV, messageSize int) *Partitioner

func (*Partitioner) FirstPartitionSize

func (p *Partitioner) FirstPartitionSize() uint

FirstPartitionSize returns the max partition payload size for the first payload

func (*Partitioner) HandlePartition

func (p *Partitioner) HandlePartition(sender *id.ID,
	contents []byte, relationshipFingerprint []byte,
	residue e2e.KeyResidue) (receive.Message, e2e.KeyResidue, bool)

func (*Partitioner) Partition

func (p *Partitioner) Partition(recipient *id.ID, mt catalog.MessageType,
	timestamp time.Time, payload []byte) ([][]byte, uint64, error)

func (*Partitioner) PayloadSize

func (p *Partitioner) PayloadSize() uint

PayloadSize Returns the max payload size for a partitionable E2E message

func (*Partitioner) SecondPartitionSize

func (p *Partitioner) SecondPartitionSize() uint

SecondPartitionSize returns the max partition payload size for all payloads after the first payload

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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