codec

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 4 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 {
	Encode(message any) (typeName string, raw []byte, err error)
	Decode(typeName string, bytes []byte) (message any, err error)
}

type Protobuf

type Protobuf struct{}

func NewProtobuf

func NewProtobuf() *Protobuf

func (*Protobuf) Decode

func (p *Protobuf) Decode(typeName string, bytes []byte) (message any, err error)

func (*Protobuf) Encode

func (p *Protobuf) Encode(message any) (typeName string, bytes []byte, err error)

Jump to

Keyboard shortcuts

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