config

package
v0.5.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigDir

func GetConfigDir() (string, error)

GetConfigDir returns the platform-appropriate configuration directory

func GetConfigPath

func GetConfigPath() (string, error)

GetConfigPath returns the full path to the config file

func GetKeystorePath

func GetKeystorePath() (string, error)

GetKeystorePath returns the full path to the keystore file Checks old location (current directory) first for backward compatibility

func MigrateKeystoreToNewLocation

func MigrateKeystoreToNewLocation() error

MigrateKeystoreToNewLocation migrates keystore from legacy location to new platform-appropriate location

func SaveConfig

func SaveConfig(path string, cfg Config) error

Types

type Config

type Config struct {
	Username       string `json:"username"`
	ServerURL      string `json:"server_url"`
	Theme          string `json:"theme"`
	TwentyFourHour bool   `json:"twenty_four_hour"`
}

func LoadConfig

func LoadConfig(path string) (Config, error)

Jump to

Keyboard shortcuts

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