vlcb

package
v0.0.0-...-5984fed Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CborVlogNew

func CborVlogNew() *cborVlog

Types

type CborPack

type CborPack func(samples []sp.TsSample) (packed []byte, e error)

type CborUnpack

type CborUnpack func(packed []byte) (unpacked []sp.TsSample, e error)

type SampleDto

type SampleDto struct {
	Id   string
	Date time.Time
	Key  []byte
	Val  []byte
}

func FromDecoder

func FromDecoder(d *cbor.Decoder) (unpacked SampleDto, e error)

func (*SampleDto) ToBytes

func (s *SampleDto) ToBytes(buf *bytes.Buffer) (packed []byte, e error)

func (*SampleDto) ToSample

func (s *SampleDto) ToSample() sp.TsSample

func (*SampleDto) UseDate

func (s *SampleDto) UseDate(dt time.Time)

func (*SampleDto) UseId

func (s *SampleDto) UseId(id string)

func (*SampleDto) UseKey

func (s *SampleDto) UseKey(k []byte)

func (*SampleDto) UseVal

func (s *SampleDto) UseVal(v []byte)

Jump to

Keyboard shortcuts

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