Documentation ¶
Index ¶
- func Method(method ...string) []string
- func NewStaticHandle(root string) http.Handler
- type Compiled
- type Request
- type Route
- func (r *Route) Add(method []string, pattern string, handler interface{})
- func (r *Route) Any(pattern string, handler interface{})
- func (r *Route) Delete(pattern string, handler interface{})
- func (r *Route) Dispatch(request Request) (*Rule, error)
- func (r *Route) Get(pattern string, handler interface{})
- func (r *Route) Head(pattern string, handler interface{})
- func (r *Route) Match(request Request) (*Rule, error)
- func (r *Route) Options(pattern string, handler interface{})
- func (r *Route) Patch(pattern string, handler interface{})
- func (r *Route) Post(pattern string, handler interface{})
- func (r *Route) Put(pattern string, handler interface{})
- func (r *Route) Static(path, root string)
- func (r *Route) Statics(statics map[string]string)
- type Rule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStaticHandle ¶
Types ¶
type Route ¶
type Rule ¶
type Rule struct { Method []string Pattern string Handler interface{} ParameterNames []string Parameters map[string]string Compiled *Compiled }
Rule Route rule
func (*Rule) GetParameterNames ¶
GetParameterNames Get all of the parameter names for the rule.
Click to show internal directories.
Click to hide internal directories.