Documentation ¶
Index ¶
- Variables
- func BigEndianBytes(number uint64) []byte
- func BigEndianBytesUint16(n uint16) []byte
- func BigEndianBytesUint32(n uint32) []byte
- func CacheDel(originDB *leveldb.DB, cacheDB *leveldb.DB, key []byte)
- func CacheGet(originDB *leveldb.DB, cacheDB *leveldb.DB, key []byte) ([]byte, error)
- func CacheHas(originDB *leveldb.DB, cacheDB *leveldb.DB, key []byte) (bool, error)
- func GetDBRoot(ctx context.Context, ind *core.IpfsNode, vcid cid.Cid, dbpath string) (dir *mfs.Directory, err error, closer func())
- func LittleEndianBytes(number uint64) []byte
- func LookupDBPath(root *mfs.Root, path string) (*mfs.Directory, error)
- func OpenExistedDB(dir *mfs.Directory, dbkey string) (*leveldb.DB, *ADB.MFSStorage, error)
- type AMessageEncode
- type MessageTypePrefix
- type RawSigner
- type VDBCacheServices
- type VDBSerices
Constants ¶
This section is empty.
Variables ¶
View Source
var OpenDBOpt = &opt.Options{}
View Source
var StorageDBPaths = []string{"/nodes", "/blocks", "/assets", "/receipts", "/transactions"}
View Source
var WriteOpt = &opt.WriteOptions{ NoWriteMerge: false, Sync: true, }
Functions ¶
func BigEndianBytes ¶
func BigEndianBytesUint16 ¶
func BigEndianBytesUint32 ¶
func LittleEndianBytes ¶
func LookupDBPath ¶
func OpenExistedDB ¶
Types ¶
type AMessageEncode ¶
type MessageTypePrefix ¶
type MessageTypePrefix uint8
type VDBCacheServices ¶
type VDBSerices ¶
type VDBSerices interface {
NewWriter() (VDBCacheServices, error)
}
Click to show internal directories.
Click to hide internal directories.