Documentation
¶
Index ¶
- func App(appName string, routes RoutesFx, options ...Option) fx.Option
- func GetFiberApp(appName string) string
- func RunApp(addr, appName string, shutdownTimeout time.Duration) fx.Option
- type Option
- 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 RouteOptions
- type RoutesFx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFiberApp ¶
Types ¶
type Option ¶
type Option func(opts *appOptions)
func WithAfterCreate ¶
func WithAfterCreate(afterCreate func(app *fiber.App)) Option
func WithFiberConfig ¶
func WithFiberConfig(cfg fiber.Config) Option
type RouteFx ¶
func GetWithRouterCallback ¶
func PatchWithRouterCallback ¶
func PostWithRouterCallback ¶
func PutWithRouterCallback ¶
func RouteWithRouterCallback ¶
type RouteOptions ¶
type RouteOptions func(*routeOptions)
func WithPrefix ¶
func WithPrefix(prefix string) RouteOptions
func WithRouterCallback ¶
func WithRouterCallback(cb func(fiber.Router)) RouteOptions
Click to show internal directories.
Click to hide internal directories.