provider

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGormLogLevel

func GetGormLogLevel(level config.LogLevel) logger.LogLevel

func GetLogLevel

func GetLogLevel(level config.LogLevel) zapcore.Level

func NewAccessLogger

func NewAccessLogger() *zap.Logger

func NewLogger

func NewLogger(writer io.Writer) *zap.Logger

Types

type Application

type Application struct {
	Logger      *zap.Logger
	DB          *gorm.DB
	Json        jsoniter.API
	Redis       *redis.Client
	Validator   *validator.Validate
	FormDecoder *form.Decoder
	Modifier    *mold.Transformer
	Casbin      *casbin.SyncedEnforcer
}
var App *Application

func InitializeApplication

func InitializeApplication() (*Application, error)

func (*Application) ImportCasbinPolicies

func (app *Application) ImportCasbinPolicies()

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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