Documentation
¶
Index ¶
- Variables
- func MatchDomains() []string
- func OnConfigChange(ev []events.Event)
- func Reload() E.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) Reload() E.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() *types.Config
- type StartServersOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var StartAllServers = &StartServersOptions{true, true}
View Source
var Validate = types.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 GetInstance ¶
func GetInstance() *Config
func (*Config) AutoCertProvider ¶
func (*Config) DumpRouteProviders ¶
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.