types

package
v0.9.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(data []byte) E.Error

Types

type Config

type Config struct {
	AutoCert        *autocert.AutocertConfig `json:"autocert"`
	Entrypoint      Entrypoint               `json:"entrypoint"`
	Providers       Providers                `json:"providers"`
	MatchDomains    []string                 `json:"match_domains" validate:"domain_name"`
	Homepage        HomepageConfig           `json:"homepage"`
	TimeoutShutdown int                      `json:"timeout_shutdown" validate:"gte=0"`
}

func DefaultConfig

func DefaultConfig() *Config

type ConfigInstance

type ConfigInstance interface {
	Value() *Config
	Reload() E.Error
	Statistics() map[string]any
	RouteProviderList() []string
	Context() context.Context
}

type Entrypoint

type Entrypoint struct {
	Middlewares []map[string]any  `json:"middlewares"`
	AccessLog   *accesslog.Config `json:"access_log" validate:"omitempty"`
}

type HomepageConfig

type HomepageConfig struct {
	UseDefaultCategories bool `json:"use_default_categories"`
}

type Providers

type Providers struct {
	Files        []string                   `json:"include" validate:"dive,filepath"`
	Docker       map[string]string          `json:"docker" validate:"dive,unix_addr|url"`
	Notification []notif.NotificationConfig `json:"notification"`
}

Jump to

Keyboard shortcuts

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