Versions in this module Expand all Collapse all v1 v1.0.0 Oct 31, 2023 Changes in this version + type After func(stream T) error + type Before func(stream T) error + type Func func(stream T) error + type Group struct + 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 struct + 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 struct + func (m *MethodsHandler[T, P]) Route(path ...string) *Route[T, P] + type MethodsRouter struct + func (m *MethodsRouter[T, P]) Route(path ...string) *Route[T, P] + type Middle func(T) + type Node struct + After []After[T] + Before []Before[T] + Data P + Desc []string + Function Func[T] + Info string + Method []string + Route []byte + type Route struct + 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 struct + StrictMode bool + 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])