config

package
v0.0.0-...-920eab1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	BookmarkBashSubPath string `json:"bookmarkBashSubPath"`
	FileScrapeRgaPath   string `json:"fileScrapeRgaPath"`
	FileScrapePath      string `json:"fileScrapePath"`
	HistoryBashSubPath  string `json:"historyBashSubPath"`
	ReadwiseCsvPath     string `json:"readwiseCsvPath"`
	PeoplePath          string `json:"peoplePath"`
	PeopleUrl           string `json:"peopleUrl"`
	TwitterPath         string `json:"twitterPath"`
	InstapaperPath      string `json:"instapaperPath"`
	RepoPath            string `json:"repoPath"`
	SecretsSubPath      string `json:"secretsSubPath"`
	Sources             struct {
		Bookmarks  bool `json:"bookmarks"`
		Gdrive     bool `json:"gdrive"`
		History    bool `json:"history"`
		Localfiles bool `json:"localfiles"`
		Readwise   bool `json:"readwise"`
		Instapaper bool `json:"instapaper"`
		People     bool `json:"people"`
		Twitter    bool `json:"twitter"`
	} `json:"sources"`
}

func LoadConfig

func LoadConfig(filePath string) AppConfig

func LoadConfigFromReader

func LoadConfigFromReader(file io.Reader) (AppConfig, error)

func (AppConfig) BookmarkPath

func (config AppConfig) BookmarkPath() string

func (AppConfig) HistoryPath

func (config AppConfig) HistoryPath() string

func (AppConfig) InitSources

func (config AppConfig) InitSources(s search.SearcherI)

Jump to

Keyboard shortcuts

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