Documentation ¶
Index ¶
- func NewAPIOpener(cctx *cli.Context, cacheSize int) (*APIOpener, APICloser, error)
- type API
- type APICloser
- type APIOpener
- type APIWrapper
- func (aw *APIWrapper) ChainHead(ctx context.Context) (*types.TipSet, error)
- func (aw *APIWrapper) DealPieceCID(ctx context.Context, root cid.Cid) (api.DataCIDSize, error)
- func (aw *APIWrapper) GetDealUpdates(ctx context.Context) (<-chan api.DealInfo, error)
- func (aw *APIWrapper) Import(ctx context.Context, ref api.FileRef) (*api.ImportRes, error)
- func (aw *APIWrapper) MinerInfo(ctx context.Context, a address.Address, tsk types.TipSetKey) (miner.MinerInfo, error)
- func (aw *APIWrapper) QueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error)
- func (aw *APIWrapper) StartDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error)
- func (aw *APIWrapper) Store() adt.Store
- type CacheCtxStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type API ¶
type API interface { StartDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error) Import(ctx context.Context, ref api.FileRef) (*api.ImportRes, error) QueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error) ChainHead(ctx context.Context) (*types.TipSet, error) MinerInfo(ctx context.Context, a address.Address, tsk types.TipSetKey) (miner.MinerInfo, error) DealPieceCID(ctx context.Context, root cid.Cid) (api.DataCIDSize, error) GetDealUpdates(ctx context.Context) (<-chan api.DealInfo, error) }
type APIWrapper ¶
func NewAPIWrapper ¶
func NewAPIWrapper(node api.FullNode, store adt.Store) *APIWrapper
func (*APIWrapper) DealPieceCID ¶
func (aw *APIWrapper) DealPieceCID(ctx context.Context, root cid.Cid) (api.DataCIDSize, error)
func (*APIWrapper) GetDealUpdates ¶
func (*APIWrapper) QueryAsk ¶
func (aw *APIWrapper) QueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error)
func (*APIWrapper) StartDeal ¶
func (aw *APIWrapper) StartDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error)
func (*APIWrapper) Store ¶
func (aw *APIWrapper) Store() adt.Store
type CacheCtxStore ¶
type CacheCtxStore struct {
// contains filtered or unexported fields
}
func NewCacheCtxStore ¶
func (*CacheCtxStore) Context ¶
func (cs *CacheCtxStore) Context() context.Context
Click to show internal directories.
Click to hide internal directories.