config

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2025 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StartAllServers = &StartServersOptions{true, true}
View Source
var Validate = config.Validate

Functions

func GetAgent added in v0.10.0

func GetAgent(addr string) (agent *agent.AgentConfig, ok bool)

func MatchDomains

func MatchDomains() []string

func OnConfigChange

func OnConfigChange(ev []events.Event)

func Reload

func Reload() gperr.Error

func WatchChanges

func WatchChanges()

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func Load

func Load() (*Config, gperr.Error)

func (*Config) AutoCertProvider

func (cfg *Config) AutoCertProvider() *autocert.Provider

AutoCertProvider returns the autocert provider.

If the autocert provider is not configured, it returns nil.

func (*Config) Context

func (cfg *Config) Context() context.Context

func (*Config) DumpRouteProviders

func (cfg *Config) DumpRouteProviders() map[string]*provider.Provider

func (*Config) DumpRoutes

func (cfg *Config) DumpRoutes() map[string]*route.Route

func (*Config) GetAgent added in v0.10.0

func (cfg *Config) GetAgent(agentAddrOrDockerHost string) (*agent.AgentConfig, bool)

func (*Config) ListAgents added in v0.10.0

func (cfg *Config) ListAgents() []*agent.AgentConfig

func (*Config) Reload

func (cfg *Config) Reload() gperr.Error

func (*Config) RouteProviderList

func (cfg *Config) RouteProviderList() []string

func (*Config) Start

func (cfg *Config) Start(opts ...*StartServersOptions)

func (*Config) StartAutoCert

func (cfg *Config) StartAutoCert()

func (*Config) StartProxyProviders

func (cfg *Config) StartProxyProviders()

func (*Config) StartServers

func (cfg *Config) StartServers(opts ...*StartServersOptions)

func (*Config) Statistics

func (cfg *Config) Statistics() map[string]any

func (*Config) Task

func (cfg *Config) Task() *task.Task

func (*Config) Value

func (cfg *Config) Value() *config.Config

func (*Config) VerifyNewAgent added in v0.10.0

func (cfg *Config) VerifyNewAgent(host string, ca agent.PEMPair, client agent.PEMPair) (int, gperr.Error)

type StartServersOptions

type StartServersOptions struct {
	Proxy, API bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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