Documentation ¶
Index ¶
- type BoltDB
- func (db *BoltDB) Get(keys []model.EncodedKey) (map[model.EncodedKey][]model.TableValue, error)
- func (db *BoltDB) GetSong(songID uint32) (string, error)
- func (db *BoltDB) GetSongID(name string) (uint32, error)
- func (db *BoltDB) Set(batch map[model.EncodedKey]model.TableValue) error
- func (db *BoltDB) SetSong(song string) (uint32, error)
- type Database
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoltDB ¶
BoltDB implements the Database interface using a bolt database
func (*BoltDB) Get ¶
func (db *BoltDB) Get(keys []model.EncodedKey) (map[model.EncodedKey][]model.TableValue, error)
Get retrieves the provided keys' values from the bolt file
func (*BoltDB) Set ¶
func (db *BoltDB) Set(batch map[model.EncodedKey]model.TableValue) error
Set stores the list of (key, value) into the bolt file
type Database ¶
type Database interface { Get([]model.EncodedKey) (map[model.EncodedKey][]model.TableValue, error) Set(map[model.EncodedKey]model.TableValue) error GetSongID(name string) (songID uint32, err error) GetSong(songID uint32) (name string, err error) SetSong(name string) (songID uint32, err error) Close() error }
Database is an interface for storing fingerprint parts in a database and retrieving them
Click to show internal directories.
Click to hide internal directories.