codec

package
v0.0.0-...-589861e Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Marshal(any) ([]byte, error)
	Unmarshal([]byte, any) error
}

type Map

type Map map[string]struct {
	Codec    Codec
	Priority int
	Children Map
}

func (Map) Codec

func (m Map) Codec(key objects.Key) Codec

func (Map) Decode

func (m Map) Decode(key objects.Key, p []byte, o *objects.Interface) error

func (Map) Encode

func (m Map) Encode(key objects.Key, o objects.Interface) ([]byte, error)

Jump to

Keyboard shortcuts

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