Documentation ¶
Index ¶
- Constants
- type Interface
- type LevelDbStore
- func (this *LevelDbStore) Close()
- func (this *LevelDbStore) Get(key *blockpkg.Key) blockpkg.Interface
- func (this *LevelDbStore) GetAll(t blockpkg.Type) []blockpkg.Interface
- func (this *LevelDbStore) GetLastKey() *blockpkg.Key
- func (this *LevelDbStore) Has(key *blockpkg.Key) bool
- func (this *LevelDbStore) Open()
- func (this *LevelDbStore) Save(b blockpkg.Interface)
Constants ¶
View Source
const BITSPERKEY = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDbStore ¶
type LevelDbStore struct {
// contains filtered or unexported fields
}
func NewLevelDBStore ¶
func NewLevelDBStore(file string, crypter *common.Crypter) *LevelDbStore
func (*LevelDbStore) Close ¶
func (this *LevelDbStore) Close()
func (*LevelDbStore) GetAll ¶
func (this *LevelDbStore) GetAll(t blockpkg.Type) []blockpkg.Interface
func (*LevelDbStore) GetLastKey ¶
func (this *LevelDbStore) GetLastKey() *blockpkg.Key
func (*LevelDbStore) Open ¶
func (this *LevelDbStore) Open()
func (*LevelDbStore) Save ¶
func (this *LevelDbStore) Save(b blockpkg.Interface)
Click to show internal directories.
Click to hide internal directories.