decode

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Header = headerDecode{}
)

Functions

func DecodeBody

func DecodeBody(r io.Reader, obj interface{}) error

func DecodeJSON

func DecodeJSON(r io.Reader, obj interface{}) error

func DecodeXML

func DecodeXML(r io.Reader, obj interface{}) error

func DecodeYAML

func DecodeYAML(r io.Reader, obj interface{}) error

Types

type BodyDecode

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

func NewBodyDecode

func NewBodyDecode(obj interface{}) *BodyDecode

func (*BodyDecode) Decode

func (b *BodyDecode) Decode(r io.Reader) error

type Decoder

type Decoder interface {
	Decode(*http.Request, interface{})
}

type JsonDecode

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

func NewJsonDecode

func NewJsonDecode(obj interface{}) *JsonDecode

func (*JsonDecode) Decode

func (j *JsonDecode) Decode(r io.Reader) error

type XmlDecode

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

func NewXmlDecode

func NewXmlDecode(obj interface{}) *XmlDecode

func (*XmlDecode) Decode

func (x *XmlDecode) Decode(r io.Reader) error

type YamlDecode

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

func NewYamlDecode

func NewYamlDecode(obj interface{}) *YamlDecode

func (*YamlDecode) Decode

func (x *YamlDecode) Decode(r io.Reader) error

Jump to

Keyboard shortcuts

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