Documentation ¶
Index ¶
Constants ¶
View Source
const AIndexesKeyPathPrefix = "/aya/chain/indexes/"
View Source
const StaticSize = 74
Variables ¶
View Source
var ( ErrCreateFailed = errors.New("create index services failed") ErrSyncRollback = errors.New("sync to target cid has rollback") )
Functions ¶
Types ¶
type Index ¶
type IndexesServices ¶
type IndexesServices interface { GetLatest() (*Index, error) SyncToCID(fullCID cid.Cid) error PutIndex(index *Index) (cid.Cid, error) GetIndex(blockNumber uint64) (*Index, error) PutIndexBy(num uint64, bhash EComm.Hash, cid cid.Cid) (cid.Cid, error) Close() error }
func CreateServices ¶
func CreateServices(ind *core.IpfsNode, chainId string, rcp bool) IndexesServices
Click to show internal directories.
Click to hide internal directories.