Versions in this module Expand all Collapse all v0 v0.0.21 Jul 29, 2024 Changes in this version type Database + PrintRecordNotFoundError bool v0.0.20 Jul 24, 2024 v0.0.20-240729 Jul 29, 2024 v0.0.19 Jul 24, 2024 Changes in this version type Database + IgnoreRecordNotFoundError bool v0.0.19-20240725 Jul 24, 2024 v0.0.18 Jul 23, 2024 Changes in this version + type Application struct + Spec ApplicationSpec + func New(configFile string, funcs ...PreProcessFunc) (*Application, error) + func (a *Application) GetAPIVersion() string + func (a *Application) GetCustomConfig() KV + func (a *Application) GetMatchedPrimaryPort(name PortName) *MatchedPrimaryPort + func (a *Application) GetMatchedPrimaryPortLocation(name PortName) *Location + func (a *Application) GetName() string + func (a *Application) GetSecondaryPort(name PortName) *SecondaryPort + func (a *Application) GetSecondaryPorts() map[PortName]SecondaryPort + type ApplicationSpec struct + CustomConfig KV + PrimaryPorts map[PortName]PrimaryPort + SecondaryPorts map[PortName]SecondaryPort + type Common struct + Database Database + Encryptor Encryptor + Log Log + Var Var + func (c *Common) Complete(applicationName string) + type Database struct + ConnectionMaxIdleSeconds int64 + ConnectionMaxLifeSeconds int64 + MaxIdleConnections int + MaxOpenConnections int + SlowThresholdMilliseconds int64 + type Encryptor struct + S string + type Interface struct + Name string + type KV map[string]interface + func (kv KV) Get(key string) interface{} + func (kv KV) GetBool(key string) bool + func (kv KV) GetDuration(key string) time.Duration + func (kv KV) GetFloat64(key string) float64 + func (kv KV) GetInt(key string) int + func (kv KV) GetInt32(key string) int32 + func (kv KV) GetInt64(key string) int64 + func (kv KV) GetString(key string) string + func (kv KV) GetStringMap(key string) map[string]interface{} + func (kv KV) GetStringMapString(key string) map[string]string + func (kv KV) GetStringMapStringSlice(key string) map[string][]string + func (kv KV) GetStringSlice(key string) []string + func (kv KV) GetTime(key string) time.Time + func (kv KV) GetUint(key string) uint + func (kv KV) GetUint32(key string) uint32 + func (kv KV) GetUint64(key string) uint64 + func (kv KV) LoadTo(out interface{}) error + type Location struct + Address string + Port int + type Log struct + Directory string + Format string + Level string + type MatchedPrimaryPort struct + ApplicationName string + Location *Location + type ObjectMeta struct + Name string + Namespace string + type PortName string + type PreProcessFunc func([]byte) ([]byte, error) + type PrimaryPort struct + Interface Interface + Location *Location + type SecondaryPort struct + Interface Interface + MatchedPrimaryPort *MatchedPrimaryPort + Options KV + type TypeMeta struct + APIVersion string + Kind string + type Var struct + PrivateDirectory string + TmpDirectory string + func (v *Var) GetPrivateDirectory() string + func (v *Var) GetTmpDirectory() string