config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GC      GCConfig      `yaml:"gc"`
	Web     WebConfig     `yaml:"web"`
	Notify  NotifyConfig  `yaml:"notify"`
	Sandbox SandboxConfig `yaml:"sandbox"`
}

Config holds the global boid configuration.

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns the default boid configuration.

func Load

func Load() (*Config, error)

Load reads the configuration from the default XDG path (~/.config/boid/config.yaml). If the file does not exist, the default configuration is returned without error.

func (*Config) UnmarshalYAML

func (c *Config) UnmarshalYAML(value *yaml.Node) error

UnmarshalYAML implements yaml.Unmarshaler for Config. It starts from DefaultConfig values so that unspecified fields retain defaults. Unknown legacy fields (state_machine.rework_limit) are silently ignored.

type GCConfig

type GCConfig struct {
	Enabled   bool          `yaml:"-"`
	Interval  time.Duration `yaml:"-"`
	OlderThan time.Duration `yaml:"-"`
}

GCConfig holds garbage collection settings.

type NotifyConfig

type NotifyConfig struct {
	Command []string `yaml:"command"`
}

NotifyConfig holds settings for agent-driven notifications.

type SandboxConfig

type SandboxConfig struct {
	AllowedDomains []string `yaml:"allowed_domains"`
}

SandboxConfig holds sandbox-related settings.

type WebConfig

type WebConfig struct {
	PublicURL string `yaml:"public_url"`
	HTTPAddr  string `yaml:"http_addr"`
}

WebConfig holds web UI settings.

Jump to

Keyboard shortcuts

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