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

config

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0 Imports: 13 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 `cf:"+secret"`
	TouLink         string
	NewAccountLink  string
	ProfileEndpoint string
}

type CompatibilityConfig added in v1.1.3

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

func (*CompatibilityConfig) GetCompiledPatterns added in v1.1.3

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

type Config

type Config struct {
	V               int
	Admin           *AdminConfig
	AgentController *agentController.Config
	Bridge          *metrics.BridgeConfig
	Compatibility   *CompatibilityConfig
	Endpoint        *EndpointConfig
	Email           *emailUi.Config
	Invites         *InvitesConfig
	Limits          *limits.Config
	Maintenance     *MaintenanceConfig
	Metrics         *metrics.Config
	Registration    *RegistrationConfig
	ResetPassword   *ResetPasswordConfig
	Store           *store.Config
	Ziti            *zrokEdgeSdk.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 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 added in v0.4.23

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