Documentation ¶
Index ¶
- Variables
- type Datastore
- func (ds *Datastore) AddPackage(pack *models.Package)
- func (ds *Datastore) GetPackage(id string) (pack *models.Package, exists bool)
- func (ds *Datastore) GetPackages() []*models.Package
- func (ds *Datastore) LoadData()
- func (ds *Datastore) RemovePackage(id string) bool
- func (ds *Datastore) SaveData()
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 (*Datastore) AddPackage ¶
func (*Datastore) GetPackage ¶
func (*Datastore) GetPackages ¶
func (*Datastore) RemovePackage ¶
Click to show internal directories.
Click to hide internal directories.