records

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound    error = fmt.Errorf("record not found")
	ErrExisted     error = fmt.Errorf("existed")
	ErrDBNotExists error = fmt.Errorf("database not exists")
)

Functions

func Backup

func Backup(to string) error

func Get

func Get(app string, limits ...int) ([]crond.JobRecord, error)

limits is count-limit, month and year

func GetById

func GetById(app, id string) (crond.JobRecord, error)

func GetDB

func GetDB(year, month int, create bool) (*bolt.DB, error)

func Init

func Init(dir string) error

func Put

func Put(app string, record crond.JobRecord) error

func Release

func Release()

Types

This section is empty.

Jump to

Keyboard shortcuts

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