config

package
v0.7.44 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const DefaultCatalogRefreshInterval = 10 * time.Minute

DefaultCatalogRefreshInterval is the documented default for the background model-catalog reload. Operators can change it with CLI2API_CATALOG_REFRESH_INTERVAL (a Go duration such as 30s or 15m, or plain minutes); 0 disables the loop and leaves only manual/console refreshes.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Host                   string
	Port                   int
	ProxyAPIKey            string
	ProxyURL               string
	MaxRetryAccounts       int
	QoderHome              string
	DataDir                string
	RuntimeDir             string
	WorkerBasePort         int
	NodeBinary             string
	WorkerDaemonPath       string
	QoderCLIPath           string
	QoderCNCLIPath         string
	PlainTemplatePath      string
	UpdateSocketPath       string
	UpdateAgentURL         string
	UpdateAgentToken       string
	UpdateGitHubToken      string
	CatalogRefreshInterval time.Duration
	// CreditFloor is the global default credit floor. Zero disables the gate;
	// per-account credit_floor overrides it when set.
	CreditFloor float64
	// PercentFloor is the global default floor for percent-denominated quota
	// snapshots (remaining percent). Zero disables the percent gate; a
	// per-account percent_floor overrides it when set.
	PercentFloor float64
}

func Load

func Load() (Config, error)

Jump to

Keyboard shortcuts

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