store

package
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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HolidayDumpRestorer

type HolidayDumpRestorer interface {
	// Dump returns all items in store
	Dump() model.Holidays
	// Restore purges all items and sets provided
	Restore(holidays model.Holidays) error
}

type HolidayGetter

type HolidayGetter interface {
	Get(date time.Time) (model.Holiday, bool, error)
	GetRange(from, to time.Time) (model.Holidays, error)
}

type HolidaySetter

type HolidaySetter interface {
	Set(holidays model.Holidays) error
}

type Store

Store is an interface for storing an getting holidays

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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