database

package
v0.0.0-...-8566abf Latest Latest
Warning

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

Go to latest
Published: May 14, 2014 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func Open

func Open(filename string) *Database

func (*Database) AddDate

func (d *Database) AddDate(date time.Time, status bool)

func (*Database) Close

func (d *Database) Close()

func (*Database) GetAllDates

func (d *Database) GetAllDates() []Date

func (*Database) GetDates

func (d *Database) GetDates(date time.Time, status bool, filter FilterMode) []Date

func (*Database) Init

func (d *Database) Init()

type Date

type Date struct {
	Date   time.Time `json:"date"`
	Status bool      `json:"status"`
}

type FilterMode

type FilterMode int
const (
	FilterDate   FilterMode = 1 << iota
	FilterStatus FilterMode = 1 << iota
)

Jump to

Keyboard shortcuts

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