Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(conf *Config, appConf interface{})
Types ¶
type AppConfig ¶
type AppConfig struct { Name string `validate:"required"` ClientTimeout int `validate:"required"` ShutdownTimeout int `validate:"required"` LoopInterval int `validate:"required"` Listen string `validate:"required"` HttpListen string `validate:"required"` Endpoints []string `validate:"required"` CertFile string `validate:"required"` KeyFile string `validate:"required"` CaFile string `validate:"required"` AccessControlAllowOrigin string `validate:"required"` AccessControlAllowCredentials string `validate:"required"` ServerHostOverride string `validate:"required"` Targets []string `validate:"required"` Labels []string `validate:"required"` NodeServiceDownTimeDuration int `validate:"required"` Database DatabaseConfig Auth AuthConfig RootClient ClientConfig }
type AuthConfig ¶
type AuthConfig struct { Secrets []string `validate:"required"` DefaultUsers []AuthUser DefaultRoles []AuthRole DefaultProjects []AuthProject DefaultProjectRoles []AuthProjectRole DefaultServices []AuthService }
type AuthProject ¶
type AuthProjectRole ¶
type AuthProjectRole struct {
Name string
}
type AuthService ¶
type ClientConfig ¶
type DatabaseConfig ¶
type DatabaseConfig struct {
Connection string `validate:"required"`
}
Click to show internal directories.
Click to hide internal directories.