split

package
v0.0.0-...-f3e8d88 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckSizeAndSerialize

func CheckSizeAndSerialize(m marshaler.Marshaler, compress bool, mType MarshalType) (bool, []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 Payloads

func Payloads(m marshaler.Marshaler, compress bool, mType MarshalType) (forwarder.Payloads, error)

Payloads serializes a metadata payload and sends it to the forwarder

Types

type MarshalType

type MarshalType int

MarshalType is the type of marshaler to use

const (
	MarshalJSON MarshalType = iota
	Marshal
)

Enumeration of the existing marshal types

Jump to

Keyboard shortcuts

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