MCPcopy
hub / github.com/gofiber/fiber / Router

Interface Router

router.go:19–44  ·  router.go::Router

Router defines all router handle interface, including app and group router.

Source from the content-addressed store, hash-verified

17
18// Router defines all router handle interface, including app and group router.
19type Router interface {
20 Use(args ...any) Router
21
22 Get(path string, handler any, handlers ...any) Router
23 Head(path string, handler any, handlers ...any) Router
24 Post(path string, handler any, handlers ...any) Router
25 Put(path string, handler any, handlers ...any) Router
26 Delete(path string, handler any, handlers ...any) Router
27 Connect(path string, handler any, handlers ...any) Router
28 Options(path string, handler any, handlers ...any) Router
29 Trace(path string, handler any, handlers ...any) Router
30 Patch(path string, handler any, handlers ...any) Router
31 Query(path string, handler any, handlers ...any) Router
32
33 Add(methods []string, path string, handler any, handlers ...any) Router
34 All(path string, handler any, handlers ...any) Router
35
36 Group(prefix string, handlers ...any) Router
37
38 Domain(host string) Router
39
40 RouteChain(path string) Register
41 Route(prefix string, fn func(router Router), name ...string) Router
42
43 Name(name string) Router
44}
45
46// Route is a struct that holds all metadata for each registered handler.
47type Route struct {

Callers 142

Test_Hook_OnRouteFunction · 0.65
Test_Hook_OnRoute_MountFunction · 0.65
Test_Hook_OnNameFunction · 0.65
Test_Hook_OnGroup_MountFunction · 0.65
Test_Hook_OnMountFunction · 0.65
quoteStringMethod · 0.65
quoteRawStringMethod · 0.65
getOfferFunction · 0.65
testGracefulShutdownFunction · 0.65

Implementers 3

Appapp.go
Groupgroup.go
domainRouterdomain.go

Calls

no outgoing calls

Tested by

no test coverage detected