encoding

package
v0.0.0-...-bb1a4e7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodingModeSelector

func EncodingModeSelector(mode protocol.ContentTypeMode) (common.Serializer, protocol.ContentTypeMode)

return appropiate content type as descriped in HTTP header value Content-Type

func EncodingSelector

func EncodingSelector(contentType string) (common.Serializer, protocol.ContentTypeMode)

return appropiate content type as descriped in HTTP header value Content-Type

func GetBytesFromMode

func GetBytesFromMode(mode protocol.ContentTypeMode, v interface{}) []byte

func GetBytesFromSerializer

func GetBytesFromSerializer(s common.Serializer, v interface{}) []byte

func GetContentTypedBytes

func GetContentTypedBytes(contentType string, v interface{}) []byte

this method uses user requested encoding serializer via http headers and encodes result as byte array

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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