encoding

package
v0.0.0-...-ad801e6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolEncoder

type BoolEncoder interface {
	// Encode encodes a collection of bools and writes the encoded bytes to the writer.
	Encode(boolVals values.BoolValues, writer io.Writer) error
}

BoolEncoder encodes bool values.

func NewBoolEncoder

func NewBoolEncoder() BoolEncoder

NewBoolEncoder creates a new bool encoder.

type BytesEncoder

type BytesEncoder interface {
	// Encode encodes a collection of bytes and writes the encoded bytes to the writer.
	Encode(strVals values.BytesValues, writer io.Writer) error
}

BytesEncoder encodes bytes values.

func NewBytesEncoder

func NewBytesEncoder() BytesEncoder

NewBytesEncoder creates a new bytes encoder.

type DoubleEncoder

type DoubleEncoder interface {
	// Encode encodes a collection of doubles and writes the encoded bytes to the writer.
	Encode(doubleVals values.DoubleValues, writer io.Writer) error
}

DoubleEncoder encodes double values.

func NewDoubleEncoder

func NewDoubleEncoder() DoubleEncoder

NewDoubleEncoder creates a new double encoder.

type EncodeTimeOptions

type EncodeTimeOptions struct {
	Resolution time.Duration
}

EncodeTimeOptions informs time encoding operation.

type IntEncoder

type IntEncoder interface {
	// Encode encodes a collection of ints and writes the encoded bytes to the writer.
	Encode(intVals values.IntValues, writer io.Writer) error
}

IntEncoder encodes int values.

func NewIntEncoder

func NewIntEncoder() IntEncoder

NewIntEncoder creates a new int encoder.

type TimeEncoder

type TimeEncoder interface {
	// Encode encodes a collection of time values and writes the encoded bytes to the writer.
	Encode(timeVals values.TimeValues, writer io.Writer, opts EncodeTimeOptions) error
}

TimeEncoder encodes times values.

func NewTimeEncoder

func NewTimeEncoder() TimeEncoder

NewTimeEncoder creates a new time encoder.

Jump to

Keyboard shortcuts

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