Documentation ¶
Index ¶
- Constants
- func AddBulkHttpGroups(httpGroups []HttpGroup) error
- func AddBulkHttpRoutes(httpRoutes []HttpRoute) error
- func AddHttpGroup(groupName string, f func(c *fiber.Ctx) error, groups []string, ...) error
- func AddHttpGroupByObj(group HttpGroup) error
- func AddHttpRoute(method string, path string, f func(c *fiber.Ctx) error, routeName string, ...) error
- func AddHttpRouteByObj(httpRoute HttpRoute) error
- func AttachHttpErrorHandler(f func(ctx *fiber.Ctx, err error) error, serverNames ...string) error
- func GetRouteByName(routeName string, serverName ...string) (*fiber.Route, error)
- type HttpGroup
- type HttpRoute
Constants ¶
View Source
const ( MethodGet = "GET" // RFC 7231, 4.3.1 MethodHead = "HEAD" // RFC 7231, 4.3.2 MethodPost = "POST" // RFC 7231, 4.3.3 MethodPut = "PUT" // RFC 7231, 4.3.4 MethodPatch = "PATCH" // RFC 5789 MethodDelete = "DELETE" // RFC 7231, 4.3.5 MethodConnect = "CONNECT" // RFC 7231, 4.3.6 MethodOptions = "OPTIONS" // RFC 7231, 4.3.7 MethodTrace = "TRACE" // RFC 7231, 4.3.8 )
Http Methods
Variables ¶
This section is empty.
Functions ¶
func AddBulkHttpGroups ¶
AddBulkHttpGroups - add bulk http groups to the server
func AddBulkHttpRoutes ¶
AddBulkHttpRoutes - add bulk http routes to the server
func AddHttpGroup ¶
func AddHttpGroup(groupName string, f func(c *fiber.Ctx) error, groups []string, serverName ...string) error
AddHttpGroup - Add group by parameters
func AddHttpGroupByObj ¶
AddHttpGroupByObj - add group by HttpGroup obj
func AddHttpRoute ¶
func AddHttpRoute(method string, path string, f func(c *fiber.Ctx) error, routeName string, versions []string, groupNames []string, serverName ...string) error
AddHttpRoute - Add route by parameters
func AddHttpRouteByObj ¶
AddHttpRouteByObj - add route by HttpRoute obj
func AttachHttpErrorHandler ¶
AttachHttpErrorHandler - Attach http error handler to the manager
func GetRouteByName ¶
GetRouteByName - Get route by providing the route name from specific server
Types ¶
Click to show internal directories.
Click to hide internal directories.