serializer

package
v0.0.0-...-64bc6a5 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: Apache-2.0 Imports: 2 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CapnpSerializer

type CapnpSerializer struct{}

func (*CapnpSerializer) Marshal

func (c *CapnpSerializer) Marshal(msg any) ([]byte, error)

func (*CapnpSerializer) Unmarshal

func (c *CapnpSerializer) Unmarshal(data []byte, out any) error

type ProtoSerializer

type ProtoSerializer struct{}

func (*ProtoSerializer) Marshal

func (p *ProtoSerializer) Marshal(msg any) ([]byte, error)

func (*ProtoSerializer) Unmarshal

func (p *ProtoSerializer) Unmarshal(data []byte, out any) error

type Serializer

type Serializer interface {
	Marshal(msg any) ([]byte, error)
	Unmarshal(data []byte, out any) error
}

type SymphonyMessage

type SymphonyMessage interface {
	MarshalSymphony() ([]byte, error)
	UnmarshalSymphony([]byte) error
}

type SymphonySerializer

type SymphonySerializer struct{}

func (*SymphonySerializer) Marshal

func (s *SymphonySerializer) Marshal(msg any) ([]byte, error)

func (*SymphonySerializer) Unmarshal

func (s *SymphonySerializer) Unmarshal(data []byte, out any) error

Jump to

Keyboard shortcuts

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