config

package
v0.0.3-beta Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppName

func GetAppName() string

func GetDir

func GetDir() (string, error)

func InitCfg

func InitCfg() error

InitCfg creates all the necessary folders and configuration files.

func Save

func Save(cfg Cfg) error

Types

type Cfg

type Cfg struct {
	DBPath          string `json:"db_path"`
	PageSizeToQuery int64  `json:"page_size_to_query"`
	DrivePath       string `json:"drive_path"`
	LogFileMaxSize  int64  `json:"log_file_max_size"`
	LogVerbosity    int64  `json:"log_verbosity"`
}

func Read

func Read() (Cfg, error)

Jump to

Keyboard shortcuts

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