frame

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelimiterCodec

func DelimiterCodec(maxFrameLength int, delimiter string, stripDelimiter bool) codec.Codec

DelimiterCodec create delimiter codec

func FixedLengthCodec

func FixedLengthCodec(length int) codec.Codec

FixedLengthCodec create fixed length codec

func LengthFieldCodec

func LengthFieldCodec(
	byteOrder binary.ByteOrder,
	maxFrameLength int,
	lengthFieldOffset int,
	lengthFieldLength int,
	lengthAdjustment int,
	initialBytesToStrip int,
) codec.Codec

LengthFieldCodec create a length field based codec

func LengthFieldPrepender

func LengthFieldPrepender(
	byteOrder binary.ByteOrder,
	lengthFieldLength int,
	lengthAdjustment int,
	lengthIncludesLengthFieldLength bool,
) netty.OutboundHandler

LengthFieldPrepender for LengthFieldCodec

An encoder to prepends the length of the message

func PacketCodec

func PacketCodec(maxFrameLength int) codec.Codec

PacketCodec create packet codec

func VariableLengthCodec

func VariableLengthCodec(maxReadLength int) codec.Codec

VariableLengthCodec create maximum received length codec

func VarintLengthFieldCodec

func VarintLengthFieldCodec(maxFrameLength int) codec.Codec

VarintLengthFieldCodec create varint length field based codec

Types

This section is empty.

Jump to

Keyboard shortcuts

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