config

package
v0.9.10 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 22 Imported by: 0

Documentation

Index

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 OnConfigChange(ev []events.Event)

func Reload

func Reload() E.Error

func WatchChanges

func WatchChanges()

Types

type Config

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

func GetInstance

func GetInstance() *Config

func Load

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

func (*Config) AutoCertProvider

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

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

func (cfg *Config) Reload() E.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() *types.Config

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