config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CurrentVersion = "1"

Variables

This section is empty.

Functions

func SaveConfig

func SaveConfig(cfg *Config, path string) error

Types

type Account

type Account struct {
	Name         string    `yaml:"name"`
	KeyID        string    `yaml:"key_id"`
	CreatedAt    time.Time `yaml:"created_at"`
	LastVerified time.Time `yaml:"last_verified"`
}

type Config

type Config struct {
	Version         string             `yaml:"version"`
	Accounts        map[string]Account `yaml:"accounts"`
	ColorThresholds struct {
		Warning int `yaml:"warning"`
		Danger  int `yaml:"danger"`
	} `yaml:"color_thresholds"`
	MaxConcurrentRequests int   `yaml:"max_concurrent_requests"`
	UseMasterPassword     *bool `yaml:"use_master_password,omitempty"`
}

func LoadOrCreateConfig

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

Jump to

Keyboard shortcuts

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