config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackendWeb   = "web"
	BackendCache = "cache"
)

Define the basic backend types

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Colors  colorscheme.Colorscheme
	Backend backend.Backend
	// contains filtered or unexported fields
}

Config is the configuration for the program

func New

func New(colors colorscheme.Colorscheme, urlPath, cachePath string, resetCache bool) (Config, error)

New returns a new Config

func (Config) Close

func (c Config) Close() error

Close closes the backend

Jump to

Keyboard shortcuts

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