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 ¶ added in v1.1.0
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 ¶ added in v1.2.2
type Cache struct { Redis *redis.Client RedisStorage *storeRedis.Storage }
func SetupCache ¶ added in v1.2.2
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.