Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAppNil = errors.New("app is nil")
)
Functions ¶
This section is empty.
Types ¶
type Option ¶
func WithAppConfig ¶ added in v0.0.3
func WithAppConfig(config fiber.Config) Option
func WithMiddlewares ¶
func WithMiddlewares(middlewares ...fiber.Handler) Option
WithMiddlewares is the option that adds middlewares to the server.
Example:
WithMiddlewares(middleware.WithRecover())
func WithPostHook ¶ added in v0.0.3
func WithPostHook(hook ...fiber.OnShutdownHandler) Option
type Server ¶
type Server struct {
// Legacy attribute for fiber app
*fiber.App
// contains filtered or unexported fields
}
Server is a struct to handle server
func NewWithDefaultConfig ¶
NewWithDefaultConfig creates a new server with default config This config choosen by the author of the package
Click to show internal directories.
Click to hide internal directories.