transports

package
v0.0.0-...-558719d Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: MIT Imports: 9 Imported by: 0

README

transports (marshalers)

ProtobufMarshaler

BrotliMarshaler

DummyMarshaler

Documentation

Index

Constants

View Source
const ChainNilOutput string = "The chain returned nil"
View Source
const ChainSingleMarshalerError string = "A chain requires two or more Marshalers."
View Source
const MarshalerNilTypeError string = "Marshaler can't handle a nil value."
View Source
const MarshalerTypeNotSupportedError string = "Marshaler doesn't support the type you're using:"
View Source
const MarshalerUnexpectedOutput string = "Unexpected Marshaler output"

Variables

This section is empty.

Functions

This section is empty.

Types

type BrotliMarshaler

type BrotliMarshaler struct {
}

func (BrotliMarshaler) Marshal

func (marshaler BrotliMarshaler) Marshal(i *interface{}) (interface{}, error)

func (BrotliMarshaler) Unmarshal

func (marshaler BrotliMarshaler) Unmarshal(i *interface{}) (interface{}, error)

type Chain

type Chain interface {
	Marshal(interface{}) (interface{}, error)
	Unmarshal(interface{}) (interface{}, error)
	// contains filtered or unexported methods
}

func NewChain

func NewChain(marshalers ...Marshaler) (Chain, error)

type ChainData

type ChainData struct {
	// contains filtered or unexported fields
}

func (*ChainData) Marshal

func (s *ChainData) Marshal(i interface{}) (interface{}, error)

func (*ChainData) Unmarshal

func (s *ChainData) Unmarshal(i interface{}) (interface{}, error)

type DummyMarshaler

type DummyMarshaler struct {
}

func (DummyMarshaler) Marshal

func (marshaler DummyMarshaler) Marshal(i *interface{}) (interface{}, error)

func (DummyMarshaler) Unmarshal

func (marshaler DummyMarshaler) Unmarshal(i *interface{}) (interface{}, error)

type Marshaler

type Marshaler interface {
	Marshal(*interface{}) (interface{}, error)
	Unmarshal(*interface{}) (interface{}, error)
}

type ProtobufMarshaler

type ProtobufMarshaler struct {
}

func (ProtobufMarshaler) Marshal

func (marshaler ProtobufMarshaler) Marshal(i *interface{}) (interface{}, error)

func (ProtobufMarshaler) Unmarshal

func (marshaler ProtobufMarshaler) Unmarshal(i *interface{}) (interface{}, error)

Directories

Path Synopsis
Package transports is a generated protocol buffer package.
Package transports is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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