config

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package config loads and saves AgentRoute's own application configuration (internal/config/config.go), distinct from any third-party tool's config that a platform adapter may edit.

Index

Constants

View Source
const DefaultPort = 4505

DefaultPort is the gateway's default listen port. If already in use, the gateway picks the next free port automatically (see gateway.PickPort).

Variables

This section is empty.

Functions

func Save

func Save(cfg Config) error

Save persists cfg to AgentRoute's app config file atomically.

Types

type Config

type Config struct {
	// ActiveProfile is the name of the profile to use when none is
	// specified via --profile. Stored as "" until the user activates one.
	ActiveProfile string `toml:"active_profile"`
	Port          int    `toml:"port"`
	ReduceMotion  bool   `toml:"reduce_motion"`
}

Config is AgentRoute's own persisted application configuration.

func Load

func Load() (Config, error)

Load reads AgentRoute's app config file, returning defaults if it does not yet exist.

Jump to

Keyboard shortcuts

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