config

package
v0.0.0-...-e238554 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupConfig

type CleanupConfig struct {
	TTL time.Duration
}

CleanupConfig holds cleanup configuration

type Config

type Config struct {
	Server   ServerConfig
	Docker   DockerConfig
	Defaults DefaultsConfig
	Consul   ConsulConfig
	Cleanup  CleanupConfig
}

Config holds the application configuration

func Load

func Load() *Config

Load reads configuration from environment variables

type ConsulConfig

type ConsulConfig struct {
	Address   string
	Token     string
	KeyPrefix string
	Enabled   bool
}

ConsulConfig holds Consul configuration

type DefaultsConfig

type DefaultsConfig struct {
	Timeout           int
	MemoryMB          int
	DiskMB            int
	CPUShares         int
	DockerImage       string
	AutoDetectImports bool
}

DefaultsConfig holds default execution parameters

type DockerConfig

type DockerConfig struct {
	Socket      string
	DNSServers  []string
	NetworkMode string // "host" or "bridge" for execution containers
}

DockerConfig holds Docker client configuration

type ServerConfig

type ServerConfig struct {
	Host     string
	Port     string
	LogLevel string
}

ServerConfig holds HTTP server configuration

Jump to

Keyboard shortcuts

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