Documentation ¶
Index ¶
- Constants
- type BeanContext
- type HandleFunc
- type Route
- type Router
- func (t *Router) Delete(pattern string, handleFunc HandleFunc)
- func (t *Router) File(pattern string, handleFunc HandleFunc)
- func (t *Router) Get(pattern string, handleFunc HandleFunc)
- func (t *Router) Post(pattern string, handleFunc HandleFunc)
- func (t *Router) Put(pattern string, handleFunc HandleFunc)
- func (t *Router) ServeHTTP(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const (
FILE = "FILE"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeanContext ¶
type BeanContext struct { Writer http.ResponseWriter Request *http.Request }
type HandleFunc ¶
type HandleFunc func(ctx *BeanContext) error
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Delete ¶
func (t *Router) Delete(pattern string, handleFunc HandleFunc)
func (*Router) File ¶
func (t *Router) File(pattern string, handleFunc HandleFunc)
func (*Router) Get ¶
func (t *Router) Get(pattern string, handleFunc HandleFunc)
func (*Router) Post ¶
func (t *Router) Post(pattern string, handleFunc HandleFunc)
func (*Router) Put ¶
func (t *Router) Put(pattern string, handleFunc HandleFunc)
Click to show internal directories.
Click to hide internal directories.