infra

package
v0.0.0-...-af691bc Latest Latest
Warning

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

Go to latest
Published: May 6, 2021 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package infra generated by 'freedom new-project github.com/8treenet/dump'

Package infra generated by 'freedom new-project github.com/8treenet/dump'

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONResponse

type JSONResponse struct {
	Code  int
	Error error

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

JSONResponse .

func (JSONResponse) Dispatch

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

Dispatch This is the middleware for HTTP output.

type Request

type Request struct {
	freedom.Infra
}

Request .

func (*Request) BeginRequest

func (req *Request) BeginRequest(worker freedom.Worker)

BeginRequest .

func (*Request) ReadForm

func (req *Request) ReadForm(obj interface{}) error

ReadForm .

func (*Request) ReadJSON

func (req *Request) ReadJSON(obj interface{}) error

ReadJSON .

func (*Request) ReadQuery

func (req *Request) ReadQuery(obj interface{}) error

ReadQuery .

Jump to

Keyboard shortcuts

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