Discover Packages
github.com/vkuksa/shortly
pkg
storage
bbolt
package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: May 23, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Options struct {
File string `toml:"file"`
Bucket string `toml:"bucket"`
}
type Storage[V any ] struct {
}
Gracefull close of database
Deletes a key-value pair from a storage
Returns an error if given key is not valid or update operation failed
Retrieves a stored value by a given key
Returns a false, nil if no value have been found for a given key
Returns an error if it occured during retrieving of value
Expects keys that are not ""
Saves data into bbolt storage
Returns an error, if given key is not valid
Source Files
¶
Click to show internal directories.
Click to hide internal directories.