data

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PACKAGES []byte = []byte("packages")

Functions

This section is empty.

Types

type Datastore

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

func NewDatastore

func NewDatastore(db *bolt.DB) *Datastore

func (*Datastore) AddPackage

func (ds *Datastore) AddPackage(pack *models.Package)

func (*Datastore) GetPackage

func (ds *Datastore) GetPackage(id string) (pack *models.Package, exists bool)

func (*Datastore) GetPackages

func (ds *Datastore) GetPackages() []*models.Package

func (*Datastore) LoadData added in v0.0.2

func (ds *Datastore) LoadData()

func (*Datastore) RemovePackage

func (ds *Datastore) RemovePackage(id string) bool

func (*Datastore) SaveData added in v0.0.2

func (ds *Datastore) SaveData()

Jump to

Keyboard shortcuts

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