config

package
v0.0.0-...-4c8fc35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(c *AppConfig)

func NewENV

func NewENV()

func NewErrorHandler

func NewErrorHandler() fiber.ErrorHandler

func NewFiber

func NewFiber() *fiber.App

func NewLogrus

func NewLogrus() *logrus.Logger

func NewOAuthFacebook

func NewOAuthFacebook() *oauth2.Config

func NewOAuthGoogle

func NewOAuthGoogle() *oauth2.Config

func NewRedis

func NewRedis() *redis.Client

func NewSQLX

func NewSQLX() *sqlx.DB

Types

type AppConfig

type AppConfig struct {
	App           *fiber.App
	DB            *sqlx.DB
	Log           *logrus.Logger
	Validator     *validator.Validate
	Redis         *redis.Client
	FacebookOAuth *oauth2.Config
	GoogleOAuth   *oauth2.Config
}

type CustomValidator

type CustomValidator struct {
	Validate *validator.Validate
	DB       *sqlx.DB
}

func NewValidator

func NewValidator(DB *sqlx.DB) *CustomValidator

func (*CustomValidator) Unique

func (cv *CustomValidator) Unique(fl validator.FieldLevel) bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL