Documentation
¶
Index ¶
- func Clear(db db.Database, prefix []byte) error
- func Count(db db.Database, prefix []byte) (int, error)
- func GetBool(db db.KeyValueReader, key []byte) (bool, error)
- func GetHash(db db.KeyValueReader, key []byte) (common.Hash, error)
- func GetID(db db.KeyValueReader, key []byte) ([]byte, error)
- func GetTimestamp(db db.KeyValueReader, key []byte) (time.Time, error)
- func GetUInt32(db db.KeyValueReader, key []byte) (uint32, error)
- func GetUInt64(db db.KeyValueReader, key []byte) (uint64, error)
- func ParseBool(bytes []byte) (bool, error)
- func ParseHash(bytes []byte) (common.Hash, error)
- func ParseID(bytes []byte) ([]byte, error)
- func ParseTimestamp(bytes []byte) (time.Time, error)
- func ParseUInt32(bytes []byte) (uint32, error)
- func ParseUInt64(bytes []byte) (uint64, error)
- func PutBool(db db.KeyValueWriter, key []byte, val bool) error
- func PutHash(db db.KeyValueWriter, key []byte, hash common.Hash) error
- func PutID(db db.KeyValueWriter, key []byte, val []byte) error
- func PutTimestamp(db db.KeyValueWriter, key []byte, val time.Time) error
- func PutUInt32(db db.KeyValueWriter, key []byte, val uint32) error
- func PutUInt64(db db.KeyValueWriter, key []byte, val uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBool ¶
func GetBool(db db.KeyValueReader, key []byte) (bool, error)
GetBool reads [prefix] + [key] -> [value]
func GetID ¶
func GetID(db db.KeyValueReader, key []byte) ([]byte, error)
GetID reads [id] -> [value]
func GetTimestamp ¶
GetTimestamp reads [prefix] + [key] -> [timestamp]
func GetUInt32 ¶
func GetUInt32(db db.KeyValueReader, key []byte) (uint32, error)
GetUInt32 reads [prefix] + [key] -> [value]
func GetUInt64 ¶
func GetUInt64(db db.KeyValueReader, key []byte) (uint64, error)
GetUInt64 reads [prefix] + [key] -> [value]
func ParseTimestamp ¶
ParseTimestamp parses a timestamp from bytes
func ParseUInt32 ¶
ParseUInt32 parses a uint32 from bytes
func ParseUInt64 ¶
ParseUInt64 parses a uint64 from bytes
func PutBool ¶
func PutBool(db db.KeyValueWriter, key []byte, val bool) error
PutBool stores [prefix] + [key] -> [value]
func PutID ¶
func PutID(db db.KeyValueWriter, key []byte, val []byte) error
PutID stores [id] -> [value]
func PutTimestamp ¶
PutTimestamp stores [prefix] + [key] -> [timestamp]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.