Documentation ¶
Index ¶
- type After
- type Before
- type Func
- type Group
- func (g *Group[T, P]) After(after ...After[T]) *Group[T, P]
- func (g *Group[T, P]) Before(before ...Before[T]) *Group[T, P]
- func (g *Group[T, P]) CancelAfter() *Group[T, P]
- func (g *Group[T, P]) CancelBefore() *Group[T, P]
- func (g *Group[T, P]) Create() *Handler[T, P]
- func (g *Group[T, P]) Desc(desc ...string) *Group[T, P]
- func (g *Group[T, P]) Handler(fn func(handler *Handler[T, P]))
- func (g *Group[T, P]) Remove(path ...string)
- func (g *Group[T, P]) RemoveAfter(after ...After[T]) *Group[T, P]
- func (g *Group[T, P]) RemoveBefore(before ...Before[T]) *Group[T, P]
- type Handler
- func (rh *Handler[T, P]) Connect(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Delete(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Get(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Group(path ...string) *Group[T, P]
- func (rh *Handler[T, P]) Head(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Method(method ...string) *MethodsHandler[T, P]
- func (rh *Handler[T, P]) Options(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Patch(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Post(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Put(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Remove(path ...string)
- func (rh *Handler[T, P]) Route(path ...string) *Route[T, P]
- func (rh *Handler[T, P]) Trace(path ...string) *Route[T, P]
- type MethodsHandler
- type MethodsRouter
- type Middle
- type Node
- type Route
- func (r *Route[T, P]) After(after ...After[T]) *Route[T, P]
- func (r *Route[T, P]) Before(before ...Before[T]) *Route[T, P]
- func (r *Route[T, P]) CancelAfter() *Route[T, P]
- func (r *Route[T, P]) CancelBefore() *Route[T, P]
- func (r *Route[T, P]) Data(data P) *Route[T, P]
- func (r *Route[T, P]) Desc(desc ...string) *Route[T, P]
- func (r *Route[T, P]) Handler(fn Func[T])
- func (r *Route[T, P]) RemoveAfter(after ...After[T]) *Route[T, P]
- func (r *Route[T, P]) RemoveBefore(before ...Before[T]) *Route[T, P]
- type Router
- func (r *Router[T, P]) Create() *Handler[T, P]
- func (r *Router[T, P]) GetAllRouters() []*Node[T, P]
- func (r *Router[T, P]) GetRoute(path string) (*trie.Node[*Node[T, P]], string)
- func (r *Router[T, P]) Group(path ...string) *Group[T, P]
- func (r *Router[T, P]) Method(method ...string) *MethodsRouter[T, P]
- func (r *Router[T, P]) Remove(path ...string)
- func (r *Router[T, P]) Route(path ...string) *Route[T, P]
- func (r *Router[T, P]) SetGlobalAfter(after ...After[T])
- func (r *Router[T, P]) SetGlobalBefore(before ...Before[T])
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
func (*Group[T, P]) CancelAfter ¶
func (*Group[T, P]) CancelBefore ¶
func (*Group[T, P]) RemoveAfter ¶
func (*Group[T, P]) RemoveBefore ¶
type Handler ¶
func (*Handler[T, P]) Method ¶
func (rh *Handler[T, P]) Method(method ...string) *MethodsHandler[T, P]
type MethodsHandler ¶
func (*MethodsHandler[T, P]) Route ¶
func (m *MethodsHandler[T, P]) Route(path ...string) *Route[T, P]
type MethodsRouter ¶
func (*MethodsRouter[T, P]) Route ¶
func (m *MethodsRouter[T, P]) Route(path ...string) *Route[T, P]
type Route ¶
func (*Route[T, P]) CancelAfter ¶
func (*Route[T, P]) CancelBefore ¶
func (*Route[T, P]) RemoveAfter ¶
func (*Route[T, P]) RemoveBefore ¶
type Router ¶
func (*Router[T, P]) GetAllRouters ¶
func (*Router[T, P]) Method ¶
func (r *Router[T, P]) Method(method ...string) *MethodsRouter[T, P]
func (*Router[T, P]) SetGlobalAfter ¶
func (*Router[T, P]) SetGlobalBefore ¶
Click to show internal directories.
Click to hide internal directories.