Documentation
¶
Index ¶
- Variables
- func CloseDB()
- func Config() *config.ConfigRegistry
- func ConnectDB()
- func NewLogger()
- func RespBadReq(c fiber.Ctx, message string, err any) error
- func RespCreated(c fiber.Ctx, message string, data any) error
- func RespInternalError(c fiber.Ctx, message string, err error) error
- func RespNotFound(c fiber.Ctx, message string) error
- func RespSuccess(c fiber.Ctx, message string, data any) error
- func RespUnauthorized(c fiber.Ctx, message string) error
- func SetDatabaseContract(fn func(*pgxpool.Pool))
- type AppContracts
- func (app *AppContracts) CreateApp(ctx context.Context, config ...fiber.Config) *AppContracts
- func (app *AppContracts) Initialize() *AppContracts
- func (app *AppContracts) RegisterAfter(hook HookFunc)
- func (app *AppContracts) RegisterBefore(hook HookFunc)
- func (app *AppContracts) RegisterRoute(route RouteFunc)
- func (app *AppContracts) Shutdown(ctx context.Context) error
- func (app *AppContracts) Start() error
- type BaseResponse
- type HookFunc
- type RouteFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger *zap.Logger
Functions ¶
func Config ¶
func Config() *config.ConfigRegistry
func SetDatabaseContract ¶
Types ¶
type AppContracts ¶
func CreateContract ¶
func CreateContract() *AppContracts
func (*AppContracts) CreateApp ¶
func (app *AppContracts) CreateApp(ctx context.Context, config ...fiber.Config) *AppContracts
func (*AppContracts) Initialize ¶
func (app *AppContracts) Initialize() *AppContracts
func (*AppContracts) RegisterAfter ¶
func (app *AppContracts) RegisterAfter(hook HookFunc)
func (*AppContracts) RegisterBefore ¶
func (app *AppContracts) RegisterBefore(hook HookFunc)
func (*AppContracts) RegisterRoute ¶
func (app *AppContracts) RegisterRoute(route RouteFunc)
func (*AppContracts) Start ¶
func (app *AppContracts) Start() error
type BaseResponse ¶
type RouteFunc ¶
type RouteFunc func(app *AppContracts) error
Click to show internal directories.
Click to hide internal directories.