parser

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Form added in v0.2.1

type Form struct {
	Pointer interface{}
}

Form is a form-parser instance.

func (Form) Parse added in v0.2.1

func (p Form) Parse(req *http.Request) error

Parse form-data.

type JSON

type JSON struct {
	Pointer interface{}
}

JSON is a json-parser instance.

func (JSON) Parse

func (p JSON) Parse(req *http.Request) error

Parse json-data.

type Parser

type Parser interface {
	// Parse request data.
	Parse(*http.Request) error
}

Parser is a handler for http-request.

type Query added in v0.2.1

type Query struct {
	Pointer interface{}
}

Query is a json-parser instance.

func (Query) Parse added in v0.2.1

func (p Query) Parse(req *http.Request) error

Parse query-data.

type String

type String struct{}

String is a json-parser instance.

func (String) Parse

func (p String) Parse(req *http.Request) (string, error)

Parse string-data.

type XML

type XML struct {
	Pointer interface{}
}

XML is a json-parser instance.

func (XML) Parse

func (p XML) Parse(req *http.Request) error

Parse xml-data.

Jump to

Keyboard shortcuts

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