controller

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path      = "path"
	Query     = "query"
	Body      = "body"
	Header    = "header"
	Form      = "form"
	Multipart = "multipart"
	Context   = "context"
	Request   = "request"
	Response  = "response"
	App       = "app"
)

Functions

func DoHandler

func DoHandler(controller component.Controller)

func FilterApis

func FilterApis(controller component.Controller, handler WebHandler)

func SetWebHandler

func SetWebHandler(h WebHandler)

Types

type Param

type Param struct {
	Name   string
	Source string
	Type   reflect.Type
}

func (Param) String

func (r Param) String() string

type WebHandler

type WebHandler func(httpMethod, url string, params []Param, funcType reflect.Method, funcValue reflect.Value)

Jump to

Keyboard shortcuts

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