Versions in this module Expand all Collapse all v1 v1.0.0 Apr 15, 2022 Changes in this version + const ConstLeveldbFileName + func InitServer(dir string) error + type Server interface + BatchInsert func(attr map[string]string) error + Close func() error + FindAll func() (map[string]string, error) + FindByKey func(key string) (data []byte, err error) + FindByPrefix func(pre string) (files map[string]string, err error) + FindLimit func(start, limit string) (data map[string]string, err error) + Insert func(key string, val interface{}) error + Instance func() *leveldb.DB + IsExistFromLevelDB func(key string) (bool, error) + Open func() error + RemoveKeyFromLevelDB func(key string) error + func GetServer() Server + func NewServer(dir string) Server + type ServerImpl struct + func (s *ServerImpl) BatchInsert(attr map[string]string) error + func (s *ServerImpl) Close() error + func (s *ServerImpl) FindAll() (map[string]string, error) + func (s *ServerImpl) FindByKey(key string) (data []byte, err error) + func (s *ServerImpl) FindByPrefix(pre string) (map[string]string, error) + func (s *ServerImpl) FindLimit(start, limit string) (map[string]string, error) + func (s *ServerImpl) Insert(key string, val interface{}) error + func (s *ServerImpl) Instance() *leveldb.DB + func (s *ServerImpl) IsExistFromLevelDB(key string) (bool, error) + func (s *ServerImpl) Open() error + func (s *ServerImpl) RemoveKeyFromLevelDB(key string) error