config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: Apache-2.0 Imports: 7 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 {
	HTTPAddress            string
	ResourceLimit          int
	ShutdownPeriod         time.Duration
	AdminSocketPath        string
	MCPSocketPath          string
	MasterKeyPath          string
	SecretsStorePath       string
	ConnectionsStorePath   string
	MCPTokenStorePath      string
	MCPControlTokenPath    string
	QueryTimeout           time.Duration
	QueryResponseByteLimit int
	QueryTruncationEnabled bool
	QueryRowLimit          int
}

Config errors retain uppercase environment variable names so diagnostics match operator-facing keys.

func Load

func Load(lookup LookupEnv, homes ...UserHomeDir) (Config, error)

func (Config) Validate

func (c Config) Validate() error

type LookupEnv

type LookupEnv func(string) (string, bool)

type UserHomeDir

type UserHomeDir func() (string, error)

Jump to

Keyboard shortcuts

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