Documentation ¶
Index ¶
- type Context
- type DynamicRoutePattern
- type Handler
- type Method
- type Path
- func (p *Path) GetRoutePattern() string
- func (p *Path) IsEqual(path Path) bool
- func (p *Path) IsParam() bool
- func (p *Path) IsRoot() bool
- func (p *Path) IsRouteValid() (bool, error)
- func (p *Path) IsSubtreePath() bool
- func (p *Path) IsValid() (bool, error)
- func (p *Path) Merge(path Path) Path
- func (p *Path) Split() []Path
- func (p *Path) String() string
- type Route
- type Router
- func (r *Router) AddHandlersIntoServeMux(serve *http.ServeMux)
- func (r *Router) All(stringPath string, handler Handler) error
- func (r *Router) Delete(stringPath string, handler Handler) error
- func (r *Router) Get(stringPath string, handler Handler) error
- func (r *Router) GetRoute(path Path) *Route
- func (r *Router) Post(stringPath string, handler Handler) error
- func (r *Router) Put(stringPath string, handler Handler) error
- func (r *Router) Use(stringPath string, router *Router) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamicRoutePattern ¶
type DynamicRoutePattern struct {
// contains filtered or unexported fields
}
type Path ¶
type Path string
func (*Path) GetRoutePattern ¶
func (*Path) IsRouteValid ¶
func (*Path) IsSubtreePath ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) AddHandlersIntoServeMux ¶
Click to show internal directories.
Click to hide internal directories.