encoders

package
v0.0.0-...-7f53d98 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encodable

type Encodable struct {
	Sender string
	Ref    string
	Data   interface{}
	Attr   map[string]string
}

Encodable defines a format more friendly to serializers.

type NoAddressMarshaler

type NoAddressMarshaler struct{}

NoAddressMarshaler implements the pubsubs.Marshaler which encodes envelopes into byte slices without care for the actotkit.Addr fields within encodoed version.

Only to be used in tests.

func (NoAddressMarshaler) Marshal

func (NoAddressMarshaler) Marshal(msg actorkit.Envelope) ([]byte, error)

Marshal implements the pubsubs.Marshaler interface.

type NoAddressUnmarshaler

type NoAddressUnmarshaler struct{}

NoAddressUnmarshaler implements the pubsubs.Unmarshaler which decodes envelopes byte slices into actorkit.Envelopes without care for the actotkit.Addr fields within encoded version.

Only to be used in tests.

func (NoAddressUnmarshaler) Unmarshal

func (NoAddressUnmarshaler) Unmarshal(data []byte) (actorkit.Envelope, error)

Unmarshal implements the pubsubs.Unmarshaler interface.

Jump to

Keyboard shortcuts

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