config

package
v0.0.0-...-12f1028 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 11 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

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

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