backend

package
v0.0.0-...-161b0b8 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2018 License: Unlicense Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(c Config)

Types

type ConfFeed

type ConfFeed struct {
	Url  string   `yaml:"url"`
	Tags []string `yaml:"tags"`
}

type Config

type Config struct {
	Browser        string        `yaml:"browser"`
	Log_file       string        `yaml:"log_file"`
	UpdateStartup  bool          `yaml:"update_at_startup"`
	UpdateInterval time.Duration `yaml:"update_interval"`
	Feeds          []ConfFeed    `yaml:"feeds"`
	Layout         layout        `yaml:"layout"`
}

func GetConfig

func GetConfig() *Config

func LoadConfig

func LoadConfig(cfgDir string) *Config

confDir must be already expanded

Jump to

Keyboard shortcuts

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