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

config

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 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 Config

type Config struct {
	Backend           string            `yaml:"backend"`
	Gate              GateConfig        `yaml:"gate"`
	ToolPolicy        PolicyConfig      `yaml:"tool_policy"`
	AskAndWaitTimeout map[string]string `yaml:"ask_and_wait_timeout"`
	RoleModels        map[string]string `yaml:"role_models"`
	Graph             GraphConfig       `yaml:"graph"`
}

func Load

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

Load reads and validates a Golem config.yaml. Backend is required — golem init never writes a config without one (spec: Distribution & Ownership — no silent default).

func (*Config) AskAndWaitTimeoutFor

func (c *Config) AskAndWaitTimeoutFor(backend string) (time.Duration, error)

type GateConfig

type GateConfig struct {
	Commands []string `yaml:"commands"`
}

type GraphConfig

type GraphConfig struct {
	IgnorePatterns  []string `yaml:"ignore_patterns"`
	MaxFileSizeKB   int      `yaml:"max_file_size_kb"`
	ExtraExtensions []string `yaml:"extra_extensions"`
}

type PolicyConfig

type PolicyConfig struct {
	AllowNetwork      []string `yaml:"allow_network"`
	AllowWorktreeOnly bool     `yaml:"allow_worktree_only"`
}

Jump to

Keyboard shortcuts

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