Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { ClientStartDeal(ctx context.Context, data cid.Cid, addr address.Address, miner address.Address, price types.BigInt, blocksDuration uint64) (*cid.Cid, error) ClientImport(ctx context.Context, path string) (cid.Cid, error) ClientGetDealInfo(context.Context, cid.Cid) (*api.DealInfo, error) ChainNotify(ctx context.Context) (<-chan []*str.HeadChange, error) }
API interacts with a Filecoin full-node
type DealConfig ¶
DealConfig contains information about a proposal for a particular miner
type DealInfo ¶
type DealInfo struct { ProposalCid cid.Cid StateID uint64 StateName string Miner string PieceRef []byte Size uint64 PricePerEpoch types.BigInt Duration uint64 }
DealInfo contains information about a proposal storage deal
type Module ¶
type Module struct {
// contains filtered or unexported fields
}
Module exposes storage and monitoring from the market.
type Option ¶
func WithImportPath ¶
type Service ¶
type Service struct { pb.UnimplementedAPIServer Module *Module }
Service implements the gprc service
func NewService ¶
NewService is a helper to create a new Service
func (*Service) Store ¶
func (s *Service) Store(srv pb.API_StoreServer) error
Store calls deals.Store
func (*Service) Watch ¶
func (s *Service) Watch(req *pb.WatchRequest, srv pb.API_WatchServer) error
Watch calls deals.Watch
Click to show internal directories.
Click to hide internal directories.