Documentation
¶
Index ¶
- Variables
- func DD(o ...interface{})
- func Err(msg ...interface{})
- func Inf(msg ...interface{})
- func PPP(msg ...interface{})
- func PackSize(v int, uint string) string
- func RegisterHandler(h interface{})
- func Wrn(msg ...interface{})
- type AfterCall
- type BeforeCall
- type MicroRequest
- type Middle
- type ROUTER
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // V2 ActionFuncMap = make(map[string]func(*MicroRequest) int, 0) MiddleFuncMap = make(map[string]func(*MicroRequest) bool, 0) )
request method set
Functions ¶
func RegisterHandler ¶
func RegisterHandler(h interface{})
Types ¶
type AfterCall ¶ added in v1.0.0
type AfterCall interface {
After(*MicroRequest) bool
}
middle function call
type BeforeCall ¶ added in v1.0.0
type BeforeCall interface {
Before(*MicroRequest) bool
}
middle function call on before
type MicroRequest ¶ added in v1.0.0
type MicroRequest struct {
R *http.Request
W http.ResponseWriter
M *Middle
}
type ROUTER ¶
type ROUTER struct{}
func (ROUTER) CrossHeader ¶
func (ROUTER) CrossHeader(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.