decoders

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SECOND = iota
	MILLISECOND
	MICROSECOND
	NANOSECOND
)

Variables

This section is empty.

Functions

func VarZigZag

func VarZigZag(d *decode.D) int64

VarZigZag reads a variable length zigzag long from the current position in decoder

Types

type BytesCodec

type BytesCodec struct{}

type DateMapper

type DateMapper struct {
}

func (DateMapper) MapSint added in v0.2.0

func (d DateMapper) MapSint(s scalar.Sint) (scalar.Sint, error)

type DecodeFn

type DecodeFn func(string, *decode.D) any

func DecodeFnForSchema

func DecodeFnForSchema(s schema.SimplifiedSchema) (DecodeFn, error)

type EnumMapper

type EnumMapper struct {
	Symbols []string
}

func (EnumMapper) MapSint added in v0.2.0

func (e EnumMapper) MapSint(s scalar.Sint) (scalar.Sint, error)

type Precision

type Precision int

type TimeMapper

type TimeMapper struct {
	Precision Precision
}

func (TimeMapper) MapSint added in v0.2.0

func (t TimeMapper) MapSint(s scalar.Sint) (scalar.Sint, error)

type TimestampMapper

type TimestampMapper struct {
	Precision Precision
}

func (TimestampMapper) MapSint added in v0.2.0

func (t TimestampMapper) MapSint(s scalar.Sint) (scalar.Sint, error)

Jump to

Keyboard shortcuts

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