watcher

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(filepath string, url string) error

DownloadFile fetches a url and saves it to a file

Types

type Database

type Database interface {
	CreateIfMissing() error
	Load() error
	Save() error
	UpdateValue(string, int)
	GetValue(string) (int, bool)
}

Database represent a map on disk

func NewDatabase

func NewDatabase(path string) Database

NewDatabase creates a new instance of in memory database

Jump to

Keyboard shortcuts

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