infra

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONRequest

type JSONRequest struct {
	freedom.Infra
}

JSONRequest .

func (*JSONRequest) BeginRequest

func (req *JSONRequest) BeginRequest(rt freedom.Runtime)

BeginRequest .

func (*JSONRequest) ReadBodyJSON

func (req *JSONRequest) ReadBodyJSON(obj interface{}) error

ReadBodyJSON .

func (*JSONRequest) ReadQueryJSON

func (req *JSONRequest) ReadQueryJSON(obj interface{}) error

ReadQueryJSON .

type JSONResponse

type JSONResponse struct {
	Code  int
	Error error

	Object interface{}
	// contains filtered or unexported fields
}

func (JSONResponse) Dispatch

func (jrep JSONResponse) Dispatch(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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