coder

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagBitOpenTracing .
	FlagBitOpenTracing = 0
	// FlagBitGZip .
	FlagBitGZip = 7
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Appender

type Appender struct {
	AppenderName string
	FlagBitIndex int
	// contains filtered or unexported fields
}

Appender .

func NewAppender

func NewAppender(appenderName string,
	flagBitIndex int,
	valueToBytes func(interface{}) ([]byte, error),
	bytesToValue func([]byte) (interface{}, error)) *Appender

NewAppender returns the trace coding middleware.

func (*Appender) Decode

func (ap *Appender) Decode(client *arpc.Client, msg *arpc.Message) *arpc.Message

Decode implements arpc MessageCoder.

func (*Appender) Encode

func (ap *Appender) Encode(client *arpc.Client, msg *arpc.Message) *arpc.Message

Encode implements arpc MessageCoder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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