Documentation ¶
Index ¶
- Variables
- type StoreDB
- func (st *StoreDB) CloseDB() error
- func (st *StoreDB) DelKV(key string) (kv StoreKV)
- func (st *StoreDB) GetKV(key string) (kv StoreKV)
- func (st *StoreDB) IndexJSON(name, pattern, jpath string) error
- func (st *StoreDB) SetKV(key, value string, ttl time.Duration) (kv StoreKV)
- func (st *StoreDB) ShrinkDB() error
- func (st *StoreDB) TruncateDB() error
- type StoreKV
- type UserStore
- func (store *UserStore) Open() *UserStore
- func (us *UserStore) UserAdd(ctx context.Context, in *model.User) (out *model.User, err error)
- func (us *UserStore) UserDel(ctx context.Context, in *model.User) (*model.User, error)
- func (us *UserStore) UserGetList(ctx context.Context, in *model.UserSelect) (*model.Users, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var UnimplementedUserServer serv.UnimplementedUserServer
Functions ¶
This section is empty.
Types ¶
type StoreDB ¶
type StoreDB struct {
// contains filtered or unexported fields
}
func (*StoreDB) CloseDB ¶
Close releases all database resources. All transactions must be closed before closing the database.
func (*StoreDB) ShrinkDB ¶
Shrink will make the database file smaller by removing redundant log entries. This operation does not block the database.
func (*StoreDB) TruncateDB ¶
TruncateKVStore truncates entire store database
Click to show internal directories.
Click to hide internal directories.