updater

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Updater

type Updater struct {
	// contains filtered or unexported fields
}

Updater performs periodic holiday updates in storage for current year

func New

func New(storage store.Store, crawler crawler.Crawler, period time.Duration, log logger.Logger) (*Updater, error)

New returns new updater instance

func (*Updater) Run

func (u *Updater) Run()

Run runs asynchronous update loop. Multiple calls do nothing - the loop started exactly once.

func (*Updater) Stop

func (u *Updater) Stop()

Stop stops update loop.

func (*Updater) String

func (u *Updater) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL