infra

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package infra generated by 'freedom new-project base'

Package infra generated by 'freedom new-project base'

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{}
	DisableLogOutput bool
}

JSONResponse .

func (JSONResponse) Dispatch

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

Dispatch .

type Request added in v1.7.4

type Request struct {
	freedom.Infra
}

Request .

func (*Request) BeginRequest added in v1.7.4

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

BeginRequest .

func (*Request) ReadForm added in v1.7.4

func (req *Request) ReadForm(obj interface{}, validates ...bool) error

ReadForm .

func (*Request) ReadJSON added in v1.7.4

func (req *Request) ReadJSON(obj interface{}, validates ...bool) error

ReadJSON .

func (*Request) ReadQuery added in v1.7.4

func (req *Request) ReadQuery(obj interface{}, validates ...bool) error

ReadQuery .

Jump to

Keyboard shortcuts

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