config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 2 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 {
	ExternalURL   string                       `yaml:"external_url"`
	Server        mkconfig.ServerConfig        `yaml:"server"`
	Database      mkconfig.DatabaseConfig      `yaml:"database"`
	Tailscale     mkconfig.TailscaleConfig     `yaml:"tailscale"`
	SecretBackend mkconfig.SecretBackendConfig `yaml:"secret_backend"`
	Secrets       map[string]string            `yaml:"secrets"`
	Search        SearchConfig                 `yaml:"search"`
	Summary       SummaryConfig                `yaml:"summary"`
	Karakeep      KarakeepConfig               `yaml:"karakeep"`
	YouTube       YouTubeConfig                `yaml:"youtube"`
}

func Load

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

type KarakeepConfig

type KarakeepConfig struct {
	BaseURL string `yaml:"base_url"`
}

type SearchConfig

type SearchConfig struct {
	DefaultThreshold float64 `yaml:"default_threshold"`
	DefaultLimit     int     `yaml:"default_limit"`
	ScoreCutoffRatio float64 `yaml:"score_cutoff_ratio"`
}

type SummaryConfig

type SummaryConfig struct {
	Provider     string `yaml:"provider"`      // "claude" or "mistral"
	ClaudeModel  string `yaml:"claude_model"`  // e.g. "claude-sonnet-4-6-latest"
	MistralModel string `yaml:"mistral_model"` // e.g. "mistral-large-latest"
	DefaultLevel string `yaml:"default_level"` // "medium" or "deep"
}

type YouTubeConfig

type YouTubeConfig struct {
	SubLangs []string `yaml:"sub_langs"` // preferred subtitle languages
}

Jump to

Keyboard shortcuts

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