Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { http.ResponseWriter *http.Request StatusCode int // contains filtered or unexported fields }
type HandleFunc ¶
type HandleFunc func(ctx *Context)
type MuxRouter ¶
type MuxRouter struct {
// contains filtered or unexported fields
}
func NewMuxRouter ¶
func NewMuxRouter() *MuxRouter
func (*MuxRouter) Get ¶
func (mr *MuxRouter) Get(path string, handleFunc HandleFunc)
func (*MuxRouter) Post ¶
func (mr *MuxRouter) Post(path string, handleFunc HandleFunc)
func (*MuxRouter) ServeHTTP ¶
func (mr *MuxRouter) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*MuxRouter) Use ¶
func (mr *MuxRouter) Use(handleFunc HandleFunc)
Click to show internal directories.
Click to hide internal directories.