Documentation ¶
Index ¶
- type Database
- func (d *Database) CloseDatabase(db *bolt.DB)
- func (d *Database) CreateBucket(database, bucket string)
- func (d *Database) OpenDatabaseRO(DatabaseName string) *bolt.DB
- func (d *Database) OpenDatabaseRW(DatabaseName string) *bolt.DB
- func (d *Database) ReadAllValues(database, bucket string, result chan map[int]string)
- func (d *Database) WriteToBucket(database, bucket, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) CloseDatabase ¶
* Close the connection.
Args: Database connectionn - @type: *bolt.DB
func (*Database) CreateBucket ¶
* Creates a new Bucket in the Database. Retruns an error if the bucket has no name, if it fails to create it or if the bucket name is to long
func (*Database) OpenDatabaseRW ¶
* Open the connection to the key/value Database. By default if no Database exists it creates a new instance.
Return: Database connection - @type: *bolt.DB
func (*Database) ReadAllValues ¶
* Reads all the key/values pairs from the Database Args:
bucket name - @type string
func (*Database) WriteToBucket ¶
* Writes a key/valye pair to the Database. Args:
bucket name - @type string value - @type string
Click to show internal directories.
Click to hide internal directories.