facades

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DB *gorm.DB
View Source
var Route *gin.Engine

Functions

This section is empty.

Types

type ConfigFacade

type ConfigFacade interface {
	//Env Get config from env.
	Env(envName string, defaultValue ...interface{}) interface{}
	//Add Add config to application.
	Add(name string, configuration map[string]interface{})
	//Get Get config from application.
	Get(path string, defaultValue ...interface{}) interface{}
	//GetString Get string type config from application.
	GetString(path string, defaultValue ...interface{}) string
	//GetInt Get int type config from application.
	GetInt(path string, defaultValue ...interface{}) int
	//GetBool Get bool type config from application.
	GetBool(path string, defaultValue ...interface{}) bool
}
var Config ConfigFacade

Jump to

Keyboard shortcuts

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