config

package
v0.0.0-...-768bafe Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(conf any, envPrefix string, configPaths []string) error

Load reads and parses the configuration file

Types

type Config

type Config struct {
	Log      logger.Config
	Ops      ops.Config
	DataDir  string `yaml:"data_dir" validate:"required" default:"./data"`
	Server   ServerConfig
	Telegram TelegramConfig
	MCP      MCPConfig
	Timezone string `yaml:"timezone" validate:"required" default:"UTC"`
}

type GroqConfig

type GroqConfig struct {
	Model  string `yaml:"model" validate:"required" default:"meta-llama/llama-4-scout-17b-16e-instruct"`
	APIKey string `yaml:"api_key" validate:"required"`
}

type MCPConfig

type MCPConfig struct {
	Groq GroqConfig
}

type ServerConfig

type ServerConfig struct {
	IsEnabled bool   `yaml:"is_enabled" default:"false"`
	Addr      string `yaml:"addr" validate:"required" default:":8080"`
}

type TelegramConfig

type TelegramConfig struct {
	BotToken string `yaml:"bot_token" validate:"required"`
}

Jump to

Keyboard shortcuts

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