package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Aug 21, 2018
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
System = "system"
)
func Add(params ...interface{})
func AddConfig(params ...interface{})
type App struct {
Project string `json:"project"`
Name string `json:"name"`
Profiles Profiles `json:"profiles"`
}
type Factory interface {
Build()
Instantiate(configuration interface{})
Configurations() map[string]interface{}
Configuration(name string) interface{}
Instances() map[string]interface{}
Instance(name string) interface{}
}
type Logging struct {
Level string `json:"level"`
}
type Profiles struct {
Include []string `json:"include"`
Active string `json:"active" value:"${APP_PROFILES_ACTIVE:dev}"`
}
type Properties struct {
Enabled bool `json:"enabled"`
DependsOn string `json:"depends_on"`
Before string `json:"before"`
After string `json:"after"`
}
type Server struct {
Port int32 `json:"port"`
}
type SystemConfiguration struct {
App App `mapstructure:"app"`
Server Server `mapstructure:"server"`
Logging Logging `mapstructure:"logging"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.