config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VaultEnvPath         = "%s/data/%s"
	EnvironmentTypeLocal = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	App      WebConfig
	Mysql    MysqlDBConfig
	Language LanguageConfig
}

type IConfigureManager

type IConfigureManager interface {
	GetWebConfig() WebConfig
	GetMysqlDBConfig() MysqlDBConfig
	GetLanguageConfig() LanguageConfig
}
var GlobalConfig IConfigureManager

func NewConfigureManager

func NewConfigureManager() IConfigureManager

type LanguageConfig

type LanguageConfig struct {
	Default   language.Tag
	Languages []language.Tag
}

type MysqlDBConfig

type MysqlDBConfig struct {
	URL string
}

type WebConfig

type WebConfig struct {
	AppName string
	Port    string
	Env     string
	Version string
	Debug   bool
}

func (WebConfig) IsProductionEnv

func (w WebConfig) IsProductionEnv() bool

Jump to

Keyboard shortcuts

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