config

package
v0.0.0-...-ae75a06 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 11

Documentation

Index

Constants

View Source
const (
	DBInmemory = "inmemory"
	DBSqlite   = "sqlite"
	DBMysql    = "mysql"
)

Variables

This section is empty.

Functions

func InitViperConfig

func InitViperConfig()

InitViperConfig https://github.com/spf13/viper Viper uses the following precedence order. Each item takes precedence over the item below it:

  • explicit call to Set
  • flag
  • env
  • config
  • key/value store
  • default

Types

type Configuration

type Configuration struct {
	AppPort                *string   `mapstructure:"app_port"`
	DemoMode               *bool     `mapstructure:"demo_mode"`
	UploadPathArea         *string   `mapstructure:"upload_path_area"`
	UploadPathCrop         *string   `mapstructure:"upload_path_crop"`
	TaniaPersistenceEngine *string   `mapstructure:"tania_persistence_engine"`
	SqlitePath             *string   `mapstructure:"sqlite_path"`
	MysqlHost              *string   `mapstructure:"mysql_host"`
	MysqlPort              *string   `mapstructure:"mysql_port"`
	MysqlDbname            *string   `mapstructure:"mysql_dbname"`
	MysqlUsername          *string   `mapstructure:"mysql_username"`
	MysqlPassword          *string   `mapstructure:"mysql_password"`
	RedirectURI            []*string `mapstructure:"redirect_uri"`
	ClientID               *string   `mapstructure:"client_id"`
}
var Config Configuration

Jump to

Keyboard shortcuts

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