config

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIKey

func GetAPIKey() (string, error)

GetAPIKey retrieves API key using fallback priority system

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the full path to the config file (exported for CLI commands)

func GetMetricsDir

func GetMetricsDir() (string, error)

GetMetricsDir returns the metrics directory path

func SaveConfig

func SaveConfig(config *Config) error

SaveConfig saves configuration to file

Types

type Config

type Config struct {
	AssemblyAIKey string `json:"assemblyai_key"`
	TypingSpeed   int    `json:"typing_speed,omitempty"` // User's typing speed in WPM
}

Config represents the application configuration

func LoadConfig

func LoadConfig() (*Config, error)

LoadConfig loads configuration from file

Jump to

Keyboard shortcuts

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