serializer

package
v0.0.0-...-3201739 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2019 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GobSerializer

type GobSerializer struct {
}

func (*GobSerializer) Serialize

func (s *GobSerializer) Serialize(values []reflect.Value) ([]byte, error)

func (*GobSerializer) Unserialize

func (s *GobSerializer) Unserialize(payloads []byte) ([]reflect.Value, error)

type Serializer

type Serializer interface {
	Unserialize([]byte) ([]reflect.Value, error)
	Serialize([]reflect.Value) ([]byte, error)
}

func NewGobSerializer

func NewGobSerializer() Serializer

Jump to

Keyboard shortcuts

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