marshaling

package
v0.0.0-...-c31ea8c Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeHeader = "Content-Type"
	AcceptHeader      = "Accept"
	JSONContentType   = tmsg.JSONContentType
)

Variables

This section is empty.

Functions

func Marshaler

func Marshaler(contentType string) tmsg.Marshaler

func Register

func Register(contentType string, mc MarshalerFactory, uc UnmarshalerFactory)

func Unmarshaler

func Unmarshaler(contentType string, protocol interface{}) tmsg.Unmarshaler

Types

type MarshalerFactory

type MarshalerFactory func() tmsg.Marshaler

type UnmarshalerFactory

type UnmarshalerFactory func(interface{}) tmsg.Unmarshaler

Jump to

Keyboard shortcuts

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