Documentation ¶
Index ¶
- func LogClient(res *resty.Response) string
- func SetupLog() *logrus.Logger
- func SetupMySql() *gorm.DB
- func SetupNewrelicApp() *newrelic.Application
- func SetupNewrelicFiber(a *newrelic.Application) fibernewrelic.Config
- func SetupResty() *resty.Request
- type AppValidator
- type Cache
- type Core
- type Database
- type ErrorField
- type LogrusTextFormatter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogClient ¶
func LogClient(res *resty.Response) string
This will return customize log message from client response
func SetupMySql ¶
func SetupNewrelicApp ¶
func SetupNewrelicApp() *newrelic.Application
func SetupNewrelicFiber ¶
func SetupNewrelicFiber(a *newrelic.Application) fibernewrelic.Config
func SetupResty ¶
func SetupResty() *resty.Request
Types ¶
type AppValidator ¶
type AppValidator struct {
Validator *validator.Validate
}
func SetupValidator ¶
func SetupValidator() *AppValidator
func (*AppValidator) Validate ¶
func (v *AppValidator) Validate(c *fiber.Ctx, payload any) (fields []ErrorField, err error)
type Cache ¶
func SetupCache ¶
func SetupCache() *Cache
type Core ¶
type Core struct { Newrelic *newrelic.Application Log *logrus.Logger Cache *Cache Client *resty.Request Database *Database Validator *AppValidator }
type ErrorField ¶
type LogrusTextFormatter ¶
type LogrusTextFormatter struct { }
Click to show internal directories.
Click to hide internal directories.