decoders

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 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) MapScalar

func (d DateMapper) MapScalar(s scalar.S) (scalar.S, 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) MapScalar

func (e EnumMapper) MapScalar(s scalar.S) (scalar.S, error)

type Precision

type Precision int

type TimeMapper

type TimeMapper struct {
	Precision Precision
}

func (TimeMapper) MapScalar

func (t TimeMapper) MapScalar(s scalar.S) (scalar.S, error)

type TimestampMapper

type TimestampMapper struct {
	Precision Precision
}

func (TimestampMapper) MapScalar

func (t TimestampMapper) MapScalar(s scalar.S) (scalar.S, error)

Jump to

Keyboard shortcuts

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