system

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Product_mode = "development"
	Os           = "linux"
)
View Source
var (
	ApplicationListener *http.Server
	HttpRouter          *gin.Engine
	SecureAPIGroup      *gin.RouterGroup
	UnsecureAPIGroup    *gin.RouterGroup
	HtmlGroup           *gin.RouterGroup
)

Functions

func NewUUID

func NewUUID() string

func ParseSystemConfig

func ParseSystemConfig(path string)

func SetConfigFromEnvironment added in v0.2.0

func SetConfigFromEnvironment()

Types

type SystemConfig

type SystemConfig struct {
	NetCoCo struct {
		Port int `yaml:"port"`
		DB   struct {
			SQL struct {
				Hostname string `yaml:"hostname"`
				Username string `yaml:"username"`
				Password string `yaml:"password"`
				DBName   string `yaml:"db_name"`
			} `yaml:"sql"`
		} `yaml:"db"`
		Security struct {
			Salt          string `yaml:"salt"`
			HttpAuthUsers []struct {
				Username string `yaml:"username"`
				Password string `yaml:"password"`
			} `yaml:"http_auth_users"`
		} `yaml:"security"`
	} `yaml:"netcoco"`
}
var (
	SystemConfigVar SystemConfig
)

Jump to

Keyboard shortcuts

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