Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	Host           string   `yaml:"host"`
	Port           int      `yaml:"port"`
	EnableCORS     bool     `yaml:"enable_cors"`
	AllowedOrigins []string `yaml:"allowed_origins"`
}

type AuthConfig

type AuthConfig struct {
	Enabled   bool     `yaml:"enabled"`
	APIKeys   []string `yaml:"api_keys"`
	JWTSecret string   `yaml:"jwt_secret"`
}

type CertbotConfig

type CertbotConfig struct {
	ContainerName string `yaml:"container_name"`
	Email         string `yaml:"email"`
	Staging       bool   `yaml:"staging"`
	CertsPath     string `yaml:"certs_path"`
	WebrootPath   string `yaml:"webroot_path"`
}

type Config

type Config struct {
	DeploymentsPath string        `yaml:"deployments_path"`
	DockerSocket    string        `yaml:"docker_socket"`
	API             APIConfig     `yaml:"api"`
	Auth            AuthConfig    `yaml:"auth"`
	Domain          DomainConfig  `yaml:"domain"`
	Nginx           NginxConfig   `yaml:"nginx"`
	Certbot         CertbotConfig `yaml:"certbot"`
	Logging         LoggingConfig `yaml:"logging"`
	Health          HealthConfig  `yaml:"health"`
}

func Load

func Load(path string) (*Config, error)

type DomainConfig

type DomainConfig struct {
	DefaultDomain  string `yaml:"default_domain"`
	AutoSubdomain  bool   `yaml:"auto_subdomain"`
	AutoSSL        bool   `yaml:"auto_ssl"`
	SubdomainStyle string `yaml:"subdomain_style"`
}

type HealthConfig

type HealthConfig struct {
	CheckInterval    time.Duration `yaml:"check_interval"`
	MetricsRetention time.Duration `yaml:"metrics_retention"`
}

type LoggingConfig

type LoggingConfig struct {
	Level  string `yaml:"level"`
	Format string `yaml:"format"`
}

type NginxConfig

type NginxConfig struct {
	ContainerName string `yaml:"container_name"`
	ConfigPath    string `yaml:"config_path"`
	ReloadCommand string `yaml:"reload_command"`
}

Jump to

Keyboard shortcuts

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