config

package
v0.0.0-...-64e30f5 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

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) Dispose

func (cfg *Config) Dispose()

func (*Config) DumpEntries

func (cfg *Config) DumpEntries() map[string]*types.RawEntry

func (*Config) DumpProviders

func (cfg *Config) DumpProviders() map[string]*PR.Provider

func (*Config) FindRoute

func (cfg *Config) FindRoute(alias string) R.Route

func (*Config) GetAutoCertProvider

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

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 (cfg *Config) Statistics() map[string]any

func (*Config) Value

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

func (*Config) WatchChanges

func (cfg *Config) WatchChanges()

Jump to

Keyboard shortcuts

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