stateless

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package stateless is a codec that provides efficient encoding of dogma.StatelessProcessRoot values.

Index

Constants

This section is empty.

Variables

View Source
var DefaultCodec = Codec{}

DefaultCodec is a marshalkit.Codec that marshals dogma.StatelessProcessRoot values.

Functions

This section is empty.

Types

type Codec

type Codec struct{}

Codec is an implementation of [marshalkit.Codec] that marshals dogma.StatelessProcessRoot values.

func (Codec) BasicMediaType

func (Codec) BasicMediaType() string

BasicMediaType returns the type and subtype portion of the media-type used to identify data encoded by this codec.

func (Codec) Marshal

func (Codec) Marshal(v any) ([]byte, error)

Marshal returns the binary representation of v.

func (Codec) PortableNames

func (Codec) PortableNames(types []reflect.Type) map[reflect.Type]string

PortableNames returns a map of type to its portable name for each of the given types that the codec supports.

func (Codec) Unmarshal

func (Codec) Unmarshal(data []byte, v any) error

Unmarshal decodes a binary representation into v.

Jump to

Keyboard shortcuts

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