Versions in this module Expand all Collapse all v1 v1.1.5 Mar 31, 2025 Changes in this version + type AuthenticationConfig struct + HTTPBasicAuthProvider HTTPBasicAuthProvider + Native RealmConfig + OAuth map[string]OAuthConfig + type AuthorizationConfig struct + type HTTPBasicAuthProvider struct + Enabled bool + Endpoint string + SecretID string + SecretKey string + type OAuthConfig struct + AuthorizeUrl string + ClientID string + ClientSecret string + DefaultRoles []string + Enabled bool + FailedPage string + RedirectUrl string + RoleMapping map[string][]string + Scopes []string + SuccessPage string + TokenUrl string + type RealmConfig struct + Enabled bool + Order int type UIConfig + BypassCORSCheck bool + type WebSecurityConfig struct + Authentication AuthenticationConfig + Enabled bool v1.1.4 Mar 14, 2025 Changes in this version type WebsocketConfig + EchoLoggingConfigOnConnect bool + EchoWelcomeMessageOnConnect bool v1.1.3 Feb 28, 2025 v1.1.2 Feb 17, 2025 v1.1.0 Jan 11, 2025 Changes in this version type HTTPClientConfig + DialTimeout string + Proxy struct{ ... } + func (c *HTTPClientConfig) ValidateProxy(addr string) (bool, *ProxyConfig) + type ProxyConfig struct + HTTPProxy string + Socket5Proxy string + UsingEnvironmentProxySettings bool v1.0.0 Dec 16, 2024 Changes in this version + func AddPathToWatch(path string, callback CallbackFunc) + func EnableWatcher(path string) + func GetVariable(runtimeKV util.MapStr, key string) (string, bool) + func LoadEnvVariables(path string) (map[string]interface{}, error) + func LoadEnvVariablesFromConfig(configObject *Config) (map[string]interface{}, error) + func LoadFiles(paths ...string) (*ucfg.Config, error) + func LoadPath(folder string) (*ucfg.Config, error) + func LoadPathWithFilter(folder string, filters ...PathFilter) (*ucfg.Config, error) + func NestedRenderingTemplate(temp string, runKv util.MapStr) string + func NewFlagOverwrite(set *flag.FlagSet, config *Config, name, path, def, usage string) *string + func NewTemplateVariables(path string) (util.MapStr, error) + func NewTemplateVariablesFromConfig(configObject *Config) (util.MapStr, error) + func NotifyOnConfigChange(f func(fsnotify.Event)) + func NotifyOnConfigSectionChange(configKey string, f func(pCfg, cCfg *Config)) + func OwnerHasExclusiveWritePerms(name string) error + func RegisterOption(name string, option ucfg.Option) + func RegisterPathFilter(f PathFilter) + func SetValidExtension(v []string) + func StopWatchers() + type APIConfig struct + APIDirectoryPath string + CrossDomain struct{ ... } + DisableAPIDirectory bool + Enabled bool + NetworkConfig NetworkConfig + Security APISecurityConfig + TLSConfig TLSConfig + VerboseErrorRootCause bool + WebsocketConfig WebsocketConfig + func (config *APIConfig) GetEndpoint() string + func (config *APIConfig) GetSchema() string + type APISecurityConfig struct + Enabled bool + Password string + Username string + type AuthConfig struct + AuthorizedAdmins []string + ClientID string + ClientSecret string + Enabled bool + OAuthProvider string + type AutoIssue struct + Domains []string + Email string + Enabled bool + IncludeDefaultDomain bool + Path string + Provider struct{ ... } + SkipInvalidDomain bool + type CallbackFunc func(file string, op fsnotify.Op) + type ClusterConfig struct + BoradcastConfig NetworkConfig + DiscoveryTimeoutInMilliseconds int64 + Enabled bool + HealthCheckInMilliseconds int64 + MinimumNodes int + Name string + RPCConfig RPCConfig + Seeds []string + func (cfg ClusterConfig) GetSeeds() []string + type Config ucfg.Config + func FromConfig(in *ucfg.Config) *Config + func LoadFile(path string) (*Config, error) + func MergeConfigs(cfgs ...*Config) (*Config, error) + func NewConfig() *Config + func NewConfigFrom(from interface{}) (*Config, error) + func NewConfigWithTemplate(v ConfigTemplate) (*Config, error) + func NewConfigWithYAML(in []byte, source string) (*Config, error) + func NewFlagConfig(set *flag.FlagSet, def *Config, name string, usage string) *Config + func (c *Config) Bool(name string, idx int) (bool, error) + func (c *Config) Child(name string, idx int) (*Config, error) + func (c *Config) CountField(name string) (int, error) + func (c *Config) Enabled(defaultV bool) bool + func (c *Config) Float(name string, idx int) (float64, error) + func (c *Config) GetFields() []string + func (c *Config) HasField(name string) bool + func (c *Config) Int(name string, idx int) (int64, error) + func (c *Config) IsArray() bool + func (c *Config) IsDict() bool + func (c *Config) Merge(from interface{}) error + func (c *Config) Path() string + func (c *Config) PathOf(field string) string + func (c *Config) SetBool(name string, idx int, value bool) error + func (c *Config) SetChild(name string, idx int, value *Config) error + func (c *Config) SetFloat(name string, idx int, value float64) error + func (c *Config) SetInt(name string, idx int, value int64) error + func (c *Config) SetString(name string, idx int, value string) error + func (c *Config) String(name string, idx int) (string, error) + func (c *Config) Unpack(to interface{}, options ...ucfg.Option) error + type ConfigTemplate struct + Name string + Path string + Variable util.MapStr + type ConfigsConfig struct + AllowGeneratedMetricsTasks bool + AlwaysRegisterAfterRestart bool + AutoReload bool + ConfigFileManagedByDefault bool + IgnoredPath []string + Interval string + Managed bool + ManagerConfig struct{ ... } + MaxBackupFiles int + PanicOnConfigError bool + ScheduledTask bool + Servers []string + SoftDelete bool + TLSConfig TLSConfig + ValidConfigsExtensions []string + type CookieConfig struct + Domain string + Secret string + type EnvConfig struct + Environments map[string]interface{} + type GzipConfig struct + Enabled bool + Level int + type HTTPClientConfig struct + HTTPProxy string + HTTPSProxy string + MaxConnectionPerHost int + Name string + ReadBufferSize int + ReadTimeout string + TLSConfig TLSConfig + Timeout string + WriteBufferSize int + WriteTimeout string + type LoggingConfig struct + DisableFileOutput bool + FileFilterPattern string + FuncFilterPattern string + IsDebug bool + LogFormat string + LogLevel string + MessageFilterPattern string + PushLogLevel string + RealtimePushEnabled bool + type Namespace struct + C map[string]*Config + func (ns *Namespace) Config() *Config + func (ns *Namespace) IsSet() bool + func (ns *Namespace) Name() string + func (ns *Namespace) Validate() error + type NetworkConfig struct + Binding string + Host string + Port int + Publish string + ReusePort bool + SkipOccupiedPort bool + func (cfg NetworkConfig) GetBindingAddr() string + func (cfg NetworkConfig) GetBindingPort() int + func (cfg NetworkConfig) GetPublishAddr() string + type NodeConfig struct + ID string + IP string + Labels map[string]string + MajorIpPattern string + Name string + Tags []string + func (config *NodeConfig) ToString() string + type PathConfig struct + Config string + Data string + Log string + Plugin string + type PathFilter func(fpath string) bool + func GenerateWildcardPathFilter(patterns []string) PathFilter + type RPCConfig struct + NetworkConfig NetworkConfig + TLSConfig TLSConfig + type ResourceLimit struct + CPU struct{ ... } + Mem struct{ ... } + type Rule struct + Contain []string + Prefix []string + Regex []string + Suffix []string + Wildcard []string + type Rules struct + Must *Rule + MustNot *Rule + Should *Rule + type S3BucketConfig struct + Async bool + Bucket string + Location string + Server string + type S3Config struct + AccessKey string + AccessSecret string + Endpoint string + SSL bool + SkipInsecureVerify bool + Token string + type SystemConfig struct + APIConfig APIConfig + AllowMultiInstance bool + ClusterConfig ClusterConfig + Configs ConfigsConfig + Cookie CookieConfig + HTTPClientConfig HTTPClientConfig + LoggingConfig LoggingConfig + MaxNumOfInstance int + Modules []*Config + NodeConfig NodeConfig + PathConfig PathConfig + Plugins []*Config + ResourceLimit *ResourceLimit + SkipInstanceDetect bool + WebAppConfig WebAppConfig + type TLSConfig struct + AutoIssue AutoIssue + ClientSessionCacheSize int + DefaultDomain string + SkipDomainVerify bool + TLSCACertFile string + TLSCertFile string + TLSEnabled bool + TLSInsecureSkipVerify bool + TLSKeyFile string + type TemplateConfigs struct + Templates []ConfigTemplate + type UIConfig struct + LocalEnabled bool + LocalPath string + VFSEnabled bool + type Watcher struct + type WebAppConfig struct + AuthConfig AuthConfig + BasePath string + CrossDomain struct{ ... } + Domain string + EmbeddingAPI bool + Enabled bool + Gzip GzipConfig + NetworkConfig NetworkConfig + S3Config S3BucketConfig + Security APISecurityConfig + TLSConfig TLSConfig + UI UIConfig + WebsocketConfig WebsocketConfig + func (config *WebAppConfig) GetEndpoint() string + func (config *WebAppConfig) GetSchema() string + type WebsocketConfig struct + BasePath string + Enabled bool + PermittedHosts []string + SkipHostVerify bool