Documentation
¶
Index ¶
Constants ¶
View Source
const ( ContentTypeHeader = "Content-Type" AcceptHeader = "Accept" JSONContentType = tmsg.JSONContentType )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(contentType string, mc MarshalerFactory, uc UnmarshalerFactory)
func Unmarshaler ¶
func Unmarshaler(contentType string, protocol interface{}) tmsg.Unmarshaler
Types ¶
type MarshalerFactory ¶
type UnmarshalerFactory ¶
type UnmarshalerFactory func(interface{}) tmsg.Unmarshaler
Click to show internal directories.
Click to hide internal directories.