codec

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: CC0-1.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CborDecoder

func CborDecoder() cbor.DecMode

func CborEncoder

func CborEncoder() cbor.EncMode

Types

type CborCodec

type CborCodec struct {
	Encoder
	Decoder
}

type Codec

type Codec interface {
	Encoder
	Decoder
}

func NewCborCodec

func NewCborCodec() Codec

func NewTinypackCodec

func NewTinypackCodec() Codec

type Decoder

type Decoder interface {
	Unmarshal(data []byte, v interface{}) error
}

type Encoder

type Encoder interface {
	Marshal(v interface{}) ([]byte, error)
}

type Tinypack

type Tinypack struct {
	Encoder
	Decoder
}

Jump to

Keyboard shortcuts

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