codec

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetActorCodec

func SetActorCodec(name string, f Factory)

SetActorCodec set Actor's Codec.

Types

type Codec

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

Codec is serializer interface.

func GetActorCodec

func GetActorCodec(name string) (Codec, error)

GetActorCodec gets the target codec instance.

type Factory

type Factory func() Codec

Factory is factory of codec.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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