Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDBStorage ¶
type LevelDBStorage struct {
// contains filtered or unexported fields
}
func New ¶
func New(root string) (*LevelDBStorage, error)
New creat a levelDB to save challenge material
func (*LevelDBStorage) Close ¶
func (s *LevelDBStorage) Close()
func (*LevelDBStorage) Load ¶
func (s *LevelDBStorage) Load(key []byte) (types.Material, error)
Load get a challenge material from levelDB
func (*LevelDBStorage) NewIterator ¶
func (s *LevelDBStorage) NewIterator(prefix []byte) ([][]byte, error)
Click to show internal directories.
Click to hide internal directories.