Documentation
¶
Index ¶
- func Load() E.NestedError
- func MatchDomains() []string
- func Validate(data []byte) E.NestedError
- type Config
- func (cfg *Config) Dispose()
- func (cfg *Config) DumpEntries() map[string]*types.RawEntry
- func (cfg *Config) DumpProviders() map[string]*PR.Provider
- func (cfg *Config) FindRoute(alias string) R.Route
- func (cfg *Config) GetAutoCertProvider() *autocert.Provider
- func (cfg *Config) HomepageConfig() H.HomePageConfig
- func (cfg *Config) Reload() (err E.NestedError)
- func (cfg *Config) RoutesByAlias() map[string]U.SerializedObject
- func (cfg *Config) StartProxyProviders()
- func (cfg *Config) Statistics() map[string]any
- func (cfg *Config) Value() types.Config
- func (cfg *Config) WatchChanges()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
func Load() E.NestedError
func MatchDomains ¶
func MatchDomains() []string
func Validate ¶
func Validate(data []byte) E.NestedError
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func GetInstance ¶
func GetInstance() *Config
func (*Config) GetAutoCertProvider ¶
func (*Config) HomepageConfig ¶
func (cfg *Config) HomepageConfig() H.HomePageConfig
func (*Config) Reload ¶
func (cfg *Config) Reload() (err E.NestedError)
func (*Config) RoutesByAlias ¶
func (cfg *Config) RoutesByAlias() map[string]U.SerializedObject
func (*Config) StartProxyProviders ¶
func (cfg *Config) StartProxyProviders()
func (*Config) Statistics ¶
func (*Config) WatchChanges ¶
func (cfg *Config) WatchChanges()
Click to show internal directories.
Click to hide internal directories.