Documentation ¶
Index ¶
- func App(appName string, displayInfo bool, routes RoutesFx) fx.Option
- func GetFiberApp(appName string) string
- func RunApp(addr, appName string, shutdownTimeout time.Duration) fx.Option
- type OptionsFunc
- type RouteFx
- func Delete(path string, handler any) RouteFx
- func DeleteWithRouterCallback(path string, cb func(fiber.Router), handler any) RouteFx
- func Get(path string, handler any) RouteFx
- func GetWithRouterCallback(path string, cb func(fiber.Router), handler any) RouteFx
- func Patch(path string, handler any) RouteFx
- func PatchWithRouterCallback(path string, cb func(fiber.Router), handler any) RouteFx
- func Post(path string, handler any) RouteFx
- func PostWithRouterCallback(path string, cb func(fiber.Router), handler any) RouteFx
- func Put(path string, handler any) RouteFx
- func PutWithRouterCallback(path string, cb func(fiber.Router), handler any) RouteFx
- func Route(method, path string, handler any) RouteFx
- func RouteWithRouterCallback(method, path string, cb func(fiber.Router), handler any) RouteFx
- type RoutesFx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFiberApp ¶
Types ¶
type OptionsFunc ¶
type OptionsFunc func(*options)
func WithPrefix ¶
func WithPrefix(prefix string) OptionsFunc
func WithRouterCallback ¶
func WithRouterCallback(cb func(fiber.Router)) OptionsFunc
func WithRoutes ¶
func WithRoutes(routes ...RouteFx) OptionsFunc
type RouteFx ¶
func GetWithRouterCallback ¶
func PatchWithRouterCallback ¶
func PostWithRouterCallback ¶
func PutWithRouterCallback ¶
func RouteWithRouterCallback ¶
Click to show internal directories.
Click to hide internal directories.