config

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package config loads cmd/gateway sidecar configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	FlowbotURL         string        `yaml:"flowbot_url"`
	AccessToken        string        `yaml:"access_token"`
	WorkerID           string        `yaml:"worker_id"`
	ClaimInterval      time.Duration `yaml:"claim_interval"`
	HeartbeatInterval  time.Duration `yaml:"heartbeat_interval"`
	DefaultWorkspace   string        `yaml:"default_workspace"`
	WorkspaceAllowlist []string      `yaml:"workspace_allowlist"`
	MaxConcurrent      int           `yaml:"max_concurrent"`
	JobTimeout         time.Duration `yaml:"job_timeout"`
	CursorBinary       string        `yaml:"cursor_binary"`
	CursorAPIKey       string        `yaml:"cursor_api_key"`
	AgentAccessToken   string        `yaml:"agent_access_token"`
	Listen             string        `yaml:"listen"`
}

Config is the local cmd/gateway sidecar configuration.

func Load

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

Load reads gateway YAML from path.

func (*Config) Validate

func (c *Config) Validate() error

Validate checks required fields.

Jump to

Keyboard shortcuts

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