Documentation ¶
Index ¶
- Constants
- type Partitioner
- func (p *Partitioner) FirstPartitionSize() uint
- func (p *Partitioner) HandlePartition(sender *id.ID, contents []byte, relationshipFingerprint []byte, ...) (receive.Message, e2e.KeyResidue, bool)
- func (p *Partitioner) Partition(recipient *id.ID, mt catalog.MessageType, timestamp time.Time, payload []byte) ([][]byte, uint64, error)
- func (p *Partitioner) PayloadSize() uint
- func (p *Partitioner) SecondPartitionSize() uint
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) 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
Click to show internal directories.
Click to hide internal directories.