serializer

package
v0.0.0-...-19c2005 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Encoding = map[string]int64{
	"DEFAULT": 0,
}

Functions

This section is empty.

Types

type SerializableItem

type SerializableItem struct {
	EncodingType int64
	Payload      interface{}
	Encoder      Serializer
}

func NewDefaultSerializer

func NewDefaultSerializer(encoder Serializer, payload interface{}) *SerializableItem

type Serializer

type Serializer interface {
	Serialize(interface{}) (*any.Any, error)
	Unserialize(*any.Any) (interface{}, error)
}

Jump to

Keyboard shortcuts

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