Documentation ¶
Index ¶
- func CheckBytes(b []byte) error
- func DBKey(format string, a ...interface{}) []byte
- func Decrypt(password, data []byte) ([]byte, error)
- func Encrypt(password, data []byte) ([]byte, error)
- func GetRandString(length int) (string, error)
- func IsRemoteFile(uri string) bool
- func ReadFile(uri string) ([]byte, error)
- func StandradURI(uri string) (string, error)
- type Config
- type Context
- type DB
- func (p *DB) CreateBucketIsNotExist(name string) error
- func (p *DB) DeleteBucket(name string) error
- func (p *DB) Get(bucketName string, key string) ([]byte, error)
- func (p *DB) GetBucketID(bucketName string) (uint64, error)
- func (p *DB) IsBucketExist(name string) bool
- func (p *DB) Put(bucketName string, key string, value []byte) error
- func (p *DB) Search(bucketName string, prefix string) (map[string][]byte, error)
- func (p *DB) Update(fn func(tx *bolt.Tx) error) error
- func (p *DB) View(fn func(tx *bolt.Tx) error) error
- type DBManager
- type LogItem
- type LogKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBytes ¶
func GetRandString ¶
func IsRemoteFile ¶
func StandradURI ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) GetSessionTimeout ¶
func (*Config) SetSessionTimeout ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func NewRootContext ¶
func (*Context) GetLogItem ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) CreateBucketIsNotExist ¶
func (*DB) DeleteBucket ¶
func (*DB) IsBucketExist ¶
type DBManager ¶
type DBManager struct {
// contains filtered or unexported fields
}
func GetManager ¶
func GetManager() *DBManager
Click to show internal directories.
Click to hide internal directories.