split

package
v0.53.2-rc.19 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 8 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSizeAndSerialize

func CheckSizeAndSerialize(m marshaler.AbstractMarshaler, compress bool, marshalFct MarshalFct, strategy strategyUtils.Compressor) (bool, []byte, []byte, error)

CheckSizeAndSerialize Check the size of a payload and marshall it (optionally compress it) The dual role makes sense as you will never serialize without checking the size of the payload

func GetPayloadDrops

func GetPayloadDrops() int64

GetPayloadDrops returns the number of times we dropped some payloads because we couldn't split them.

func JSONMarshalFct

func JSONMarshalFct(m marshaler.AbstractMarshaler) ([]byte, error)

JSONMarshalFct marshal with MarshalJSON method.

func Payloads

func Payloads(m marshaler.AbstractMarshaler, compress bool, marshalFct MarshalFct, strategy strategyUtils.Compressor) (transaction.BytesPayloads, error)

Payloads serializes a metadata payload and sends it to the forwarder

func ProtoMarshalFct

func ProtoMarshalFct(m marshaler.AbstractMarshaler) ([]byte, error)

ProtoMarshalFct marshal with Marshal method.

Types

type MarshalFct

type MarshalFct func(m marshaler.AbstractMarshaler) ([]byte, error)

MarshalFct marshal m. Must be either JSONMarshalFct or ProtoMarshalFct.

Jump to

Keyboard shortcuts

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