config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2022 License: GPL-3.0 Imports: 10 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 {
	ConfigFile string `toml:"-"`

	ConnectionString string

	CachePath         string // Deprecated, should be removed soon
	DatabaseCachePath string
	ProgramCachePath  string

	Logfile string

	Profile ConfigProfile

	Shortcuts          map[string]string
	ShortcutsReference string

	ArticlesListView int8
}

func LoadConfig

func LoadConfig() (*Config, error)

func (*Config) LoadDefaults added in v0.0.9

func (cfg *Config) LoadDefaults() error

func (*Config) Persist

func (cfg *Config) Persist() error

func (*Config) Setup

func (cfg *Config) Setup() error

func (*Config) WasSetup

func (cfg *Config) WasSetup() bool

type ConfigProfile

type ConfigProfile struct {
	From         string
	Organization string
}

type ConfigShortcuts added in v0.0.9

type ConfigShortcuts struct {
	Refresh int64
	Quit    int64

	FocusGroups   int64
	FocusArticles int64
	FocusPreviews int64

	NewArticle     int64
	ReplyToArticle int64
}

Jump to

Keyboard shortcuts

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