Documentation ¶
Index ¶
- type KV
- func (k *KV) Backup(key string, obj interface{}) error
- func (k *KV) Close()
- func (k *KV) CompactRange(r util.Range) error
- func (k *KV) Delete(key []byte, wo *opt.WriteOptions) error
- func (k *KV) Get(key []byte, ro *opt.ReadOptions) ([]byte, error)
- func (k *KV) GetByPrefix(pref string) map[string]string
- func (k *KV) GetRouter() http.Handler
- func (k *KV) GetStrValue(key string) string
- func (k *KV) Has(key []byte, ro *opt.ReadOptions) (bool, error)
- func (k *KV) HttpGetByPrefix(w http.ResponseWriter, r *http.Request)
- func (k *KV) HttpGetByPrefixFromPost(w http.ResponseWriter, r *http.Request)
- func (k *KV) HttpGetByPrefixQuery(w http.ResponseWriter, r *http.Request)
- func (k *KV) HttpRemoveKey(w http.ResponseWriter, r *http.Request)
- func (k *KV) NewBatch() *leveldb.Batch
- func (k *KV) NewIterator(slice *util.Range, ro *opt.ReadOptions) iterator.Iterator
- func (k *KV) Put(key []byte, value []byte, wo *opt.WriteOptions) error
- func (k *KV) PutStrValue(key string, value string)
- func (k *KV) Range(start string, limit string) map[string]string
- func (k *KV) Remove(key string) error
- func (k *KV) Restore(key string, obj interface{}) error
- func (k *KV) Write(batch *leveldb.Batch, wo *opt.WriteOptions) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KV ¶
type KV struct {
// contains filtered or unexported fields
}
func (*KV) GetStrValue ¶
func (*KV) HttpGetByPrefix ¶
func (k *KV) HttpGetByPrefix(w http.ResponseWriter, r *http.Request)
func (*KV) HttpGetByPrefixFromPost ¶
func (k *KV) HttpGetByPrefixFromPost(w http.ResponseWriter, r *http.Request)
func (*KV) HttpGetByPrefixQuery ¶
func (k *KV) HttpGetByPrefixQuery(w http.ResponseWriter, r *http.Request)
func (*KV) HttpRemoveKey ¶
func (k *KV) HttpRemoveKey(w http.ResponseWriter, r *http.Request)
func (*KV) NewIterator ¶
func (*KV) PutStrValue ¶
Click to show internal directories.
Click to hide internal directories.