router

package
v0.3.73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Annotate

func Annotate(annotators ...ngamux.Annotator) *ngamux.Annotation

func Configure

func Configure(c *config.Web)

func Delete

func Delete(path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Get

func Get(path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Group

func Group(path string) *ngamux.HttpServeMux

func HandleFunc

func HandleFunc(method, path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Patch

func Patch(path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Post

func Post(path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Put

func Put(path string, handlerFunc http.HandlerFunc, middleware ...ngamux.MiddlewareFunc)

func Router

func Router() *ngamux.HttpServeMux

func Server

func Server() *http.Server

func Use

func Use(middleware ...ngamux.MiddlewareFunc)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL