config

package
v0.0.0-...-fbd5fee Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 4 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 {
	LLM    LLMConfig
	Server ServerConfig
	DB     DBConfig
	Log    LogConfig
	Query  QueryConfig
}

func Load

func Load() (*Config, error)

func (*Config) HasDefaultConnection

func (c *Config) HasDefaultConnection() bool

HasDefaultConnection checks if default database connection is configured

func (*Config) Validate

func (c *Config) Validate() error

type DBConfig

type DBConfig struct {
	SQLitePath    string
	EncryptionKey string
	// Default connection config (optional)
	DefaultType     string
	DefaultHost     string
	DefaultPort     int
	DefaultName     string
	DefaultUser     string
	DefaultPassword string
}

type LLMConfig

type LLMConfig struct {
	BaseURL     string
	APIKey      string
	Model       string
	Temperature float32
	MaxTokens   int
}

type LogConfig

type LogConfig struct {
	Level  string
	Format string
}

type QueryConfig

type QueryConfig struct {
	MaxRows        int
	TimeoutSeconds int
}

type ServerConfig

type ServerConfig struct {
	Port string
	Host string
}

Jump to

Keyboard shortcuts

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