Documentation
¶
Index ¶
- Variables
- func GetAgent(addr string) (agent *agent.AgentConfig, ok bool)
- func MatchDomains() []string
- func OnConfigChange(ev []events.Event)
- func Reload() gperr.Error
- func WatchChanges()
- type Config
- func (cfg *Config) AutoCertProvider() *autocert.Provider
- func (cfg *Config) Context() context.Context
- func (cfg *Config) DumpRouteProviders() map[string]*provider.Provider
- func (cfg *Config) DumpRoutes() map[string]*route.Route
- func (cfg *Config) GetAgent(agentAddrOrDockerHost string) (*agent.AgentConfig, bool)
- func (cfg *Config) ListAgents() []*agent.AgentConfig
- func (cfg *Config) Reload() gperr.Error
- func (cfg *Config) RouteProviderList() []string
- func (cfg *Config) Start(opts ...*StartServersOptions)
- func (cfg *Config) StartAutoCert()
- func (cfg *Config) StartProxyProviders()
- func (cfg *Config) StartServers(opts ...*StartServersOptions)
- func (cfg *Config) Statistics() map[string]any
- func (cfg *Config) Task() *task.Task
- func (cfg *Config) Value() *config.Config
- func (cfg *Config) VerifyNewAgent(host string, ca agent.PEMPair, client agent.PEMPair) (int, gperr.Error)
- type StartServersOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var StartAllServers = &StartServersOptions{true, true}
View Source
var Validate = config.Validate
Functions ¶
func MatchDomains ¶
func MatchDomains() []string
func OnConfigChange ¶
func WatchChanges ¶
func WatchChanges()
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) AutoCertProvider ¶
AutoCertProvider returns the autocert provider.
If the autocert provider is not configured, it returns nil.
func (*Config) DumpRouteProviders ¶
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) RouteProviderList ¶
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 ¶
type StartServersOptions ¶
type StartServersOptions struct {
Proxy, API bool
}
Click to show internal directories.
Click to hide internal directories.