helper

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionFuncMap = make(map[string]func(*http.Request) ([]byte, error), 0)
	MiddleFuncMap = make(map[string]func(*http.Request) (interface{}, bool), 0)
)

Functions

func DD

func DD(o ...interface{})

func Err

func Err(msg ...interface{})

func HeaderAdd added in v1.0.1

func HeaderAdd(r *http.Request, key, value string)

for add

func HeaderInit added in v1.0.1

func HeaderInit(r *http.Request)

header init

func HeaderSet added in v1.0.1

func HeaderSet(r *http.Request, key, value string)

for set

func Inf

func Inf(msg ...interface{})

func MidData added in v1.0.3

func MidData(r *http.Request) interface{}

func PPP

func PPP(msg ...interface{})

func RegisterHandler

func RegisterHandler(h interface{})

func Wrn

func Wrn(msg ...interface{})

Types

type AfterCall added in v1.0.0

type AfterCall interface {
	After(*http.Request) (interface{}, bool)
}

middle function call

type BeforeCall added in v1.0.0

type BeforeCall interface {
	Before(*http.Request) (interface{}, bool)
}

middle function call on before

type ROUTER

type ROUTER struct{}

func (ROUTER) CrossHeader

func (ROUTER) CrossHeader(w http.ResponseWriter)

func (ROUTER) ServeHTTP

func (ROUTER) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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