boltstore

package
v0.0.0-...-e9349c8 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB holds

func Init

func Init(path string, vocabNames []libaural2.VocabName) (db DB, err error)

Init creates a new boltDB file, or opens the existing file if it already exists.

func (DB) Close

func (db DB) Close() (err error)

Close the DB

func (DB) GetAllLabelSets

func (db DB) GetAllLabelSets(vocabName libaural2.VocabName) (labelSets map[libaural2.ClipID]libaural2.LabelSet, err error)

GetAllLabelSets returns all the labelSets

func (DB) GetLabelSet

func (db DB) GetLabelSet(sampleID libaural2.ClipID, vocabName libaural2.VocabName) (labelSet libaural2.LabelSet, err error)

GetLabelSet gets one LabelSet

func (DB) ListAudioClips

func (db DB) ListAudioClips() (ids []libaural2.ClipID)

ListAudioClips lists all AudioClips

func (DB) PutClipID

func (db DB) PutClipID(id libaural2.ClipID) (err error)

PutClipID inserts one clipID into the DB

func (DB) PutLabelSet

func (db DB) PutLabelSet(labelSet libaural2.LabelSet) (err error)

PutLabelSet inserts one labelSet into the DB.

Jump to

Keyboard shortcuts

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