Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v2.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigVersion = 4

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminConfig

type AdminConfig struct {
	Secrets         []string `dd:"+secret"`
	TouLink         string
	NewAccountLink  string
	ProfileEndpoint string
}

type CompatibilityConfig

type CompatibilityConfig struct {
	LogRequests     bool
	VersionPatterns []string
	// contains filtered or unexported fields
}

func (*CompatibilityConfig) GetCompiledPatterns

func (cfg *CompatibilityConfig) GetCompiledPatterns() []*regexp.Regexp

type Config

type Config struct {
	V                      int
	Admin                  *AdminConfig
	AgentController        *agentController.Config
	Bridge                 *metrics.BridgeConfig
	Compatibility          *CompatibilityConfig
	DynamicProxyController *dynamicProxyController.Config
	Endpoint               *EndpointConfig
	Email                  *emailUi.Config
	Invites                *InvitesConfig
	Limits                 *limits.Config
	Maintenance            *MaintenanceConfig
	Metrics                *metrics.Config
	Names                  *NamesConfig
	Registration           *RegistrationConfig
	ResetPassword          *ResetPasswordConfig
	Store                  *store.Config
	Ziti                   *automation.Config
	Tls                    *TlsConfig
}

func DefaultConfig

func DefaultConfig() *Config

func LoadConfig

func LoadConfig(path string) (*Config, error)

type EndpointConfig

type EndpointConfig struct {
	Host string
	Port int
}

type InvitesConfig

type InvitesConfig struct {
	InvitesOpen   bool
	TokenStrategy string
	TokenContact  string
}

type MaintenanceConfig

type MaintenanceConfig struct {
	ResetPassword *ResetPasswordMaintenanceConfig
	Registration  *RegistrationMaintenanceConfig
}

type NamesConfig

type NamesConfig struct {
	DisableShareTokenProfanityCheck    bool
	DisableNamespaceNameProfanityCheck bool
}

type RegistrationConfig

type RegistrationConfig struct {
	RegistrationUrlTemplate string
}

type RegistrationMaintenanceConfig

type RegistrationMaintenanceConfig struct {
	ExpirationTimeout time.Duration
	CheckFrequency    time.Duration
	BatchLimit        int
}

type ResetPasswordConfig

type ResetPasswordConfig struct {
	ResetUrlTemplate string
}

type ResetPasswordMaintenanceConfig

type ResetPasswordMaintenanceConfig struct {
	ExpirationTimeout time.Duration
	CheckFrequency    time.Duration
	BatchLimit        int
}

type TlsConfig

type TlsConfig struct {
	CertPath string
	KeyPath  string
}

Jump to

Keyboard shortcuts

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