Documentation ¶
Index ¶
- Variables
- func Delete(bucketName string, key string) error
- func Get(bucketName string, key string) (string, error)
- func GetBytes(bucketName string, key string) ([]byte, error)
- func GetJson(bucketName string, key string, dest any) (any, error)
- func InitDefaultBolt(filepath string, bucketName ...string) error
- func Set(bucketName string, key string, value string) error
- func SetBytes(bucketName string, key string, value []byte) error
- func SetJson(bucketName string, key string, dest any) error
- type Bolt
- type BoltTran
- type BoltTranBucket
- func (ce *BoltTranBucket) Delete(key string) error
- func (ce *BoltTranBucket) Get(key string) string
- func (ce *BoltTranBucket) GetBytes(key string) []byte
- func (ce *BoltTranBucket) GetJson(key string, dest any) (any, error)
- func (ce *BoltTranBucket) Set(key string, value string) error
- func (ce *BoltTranBucket) SetBytes(key string, value []byte) error
- func (ce *BoltTranBucket) SetJson(key string, dest any) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func InitDefaultBolt ¶
Types ¶
type BoltTran ¶
func (*BoltTran) Bucket ¶
func (ce *BoltTran) Bucket(bucketName string) *BoltTranBucket
type BoltTranBucket ¶
func (*BoltTranBucket) Delete ¶
func (ce *BoltTranBucket) Delete(key string) error
func (*BoltTranBucket) Get ¶
func (ce *BoltTranBucket) Get(key string) string
func (*BoltTranBucket) GetBytes ¶
func (ce *BoltTranBucket) GetBytes(key string) []byte
func (*BoltTranBucket) GetJson ¶
func (ce *BoltTranBucket) GetJson(key string, dest any) (any, error)
Click to show internal directories.
Click to hide internal directories.