Documentation
¶
Index ¶
- type DealsRepo
- func (_m *DealsRepo) BulkWrite(deals []*bsontypes.MarketDeal) error
- func (_m *DealsRepo) CreateIndexes() error
- func (_m *DealsRepo) Find(filter primitive.M, page uint64, perPage uint64) ([]*bsontypes.MarketDeal, error)
- func (_m *DealsRepo) GetDeal(dealID uint64) (*bsontypes.MarketDeal, error)
- func (_m *DealsRepo) Miners() ([]string, error)
- type SectorsRepo
- func (_m *SectorsRepo) BulkWrite(sectors []*bsontypes.SectorInfo) error
- func (_m *SectorsRepo) BulkWriteInfo(sectors []*bsontypes.SectorInfo) error
- func (_m *SectorsRepo) CreateIndexes() error
- func (_m *SectorsRepo) GetSector(sectorID uint64) (bsontypes.SectorInfo, error)
- func (_m *SectorsRepo) SectorWithDeal(dealID uint64) (*bsontypes.SectorInfo, error)
- func (_m *SectorsRepo) SetFaultSectors(sectors []uint64) error
- func (_m *SectorsRepo) SetRecoveriesSectors(sectors []uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DealsRepo ¶
DealsRepo is an autogenerated mock type for the DealsRepo type
func (*DealsRepo) BulkWrite ¶
func (_m *DealsRepo) BulkWrite(deals []*bsontypes.MarketDeal) error
BulkWrite provides a mock function with given fields: deals
func (*DealsRepo) CreateIndexes ¶
CreateIndexes provides a mock function with given fields:
func (*DealsRepo) Find ¶
func (_m *DealsRepo) Find(filter primitive.M, page uint64, perPage uint64) ([]*bsontypes.MarketDeal, error)
Find provides a mock function with given fields: filter, page, perPage
type SectorsRepo ¶
SectorsRepo is an autogenerated mock type for the SectorsRepo type
func (*SectorsRepo) BulkWrite ¶
func (_m *SectorsRepo) BulkWrite(sectors []*bsontypes.SectorInfo) error
BulkWrite provides a mock function with given fields: sectors
func (*SectorsRepo) BulkWriteInfo ¶
func (_m *SectorsRepo) BulkWriteInfo(sectors []*bsontypes.SectorInfo) error
BulkWriteInfo provides a mock function with given fields: sectors
func (*SectorsRepo) CreateIndexes ¶
func (_m *SectorsRepo) CreateIndexes() error
CreateIndexes provides a mock function with given fields:
func (*SectorsRepo) GetSector ¶
func (_m *SectorsRepo) GetSector(sectorID uint64) (bsontypes.SectorInfo, error)
GetSector provides a mock function with given fields: sectorID
func (*SectorsRepo) SectorWithDeal ¶
func (_m *SectorsRepo) SectorWithDeal(dealID uint64) (*bsontypes.SectorInfo, error)
SectorWithDeal provides a mock function with given fields: dealID
func (*SectorsRepo) SetFaultSectors ¶
func (_m *SectorsRepo) SetFaultSectors(sectors []uint64) error
SetFaultSectors provides a mock function with given fields: sectors
func (*SectorsRepo) SetRecoveriesSectors ¶
func (_m *SectorsRepo) SetRecoveriesSectors(sectors []uint64) error
SetRecoveriesSectors provides a mock function with given fields: sectors