Documentation
¶
Index ¶
- type Asks
- type Client
- type Deals
- func (d *Deals) Retrieve(ctx context.Context, waddr string, cid cid.Cid) (io.Reader, error)
- func (d *Deals) Store(ctx context.Context, addr string, data io.Reader, ...) ([]cid.Cid, []deals.StorageDealConfig, error)
- func (d *Deals) Watch(ctx context.Context, proposals []cid.Cid) (<-chan client.WatchEvent, error)
- type Miners
- type Reputation
- type Slashing
- type Wallet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Asks ¶
type Asks struct {
}
Asks stub
type Client ¶
type Client struct {
Asks *Asks
Miners *Miners
Slashing *Slashing
Deals *Deals
Wallet *Wallet
Reputation *Reputation
}
Client provides the client api
type Deals ¶
type Deals struct {
}
Deals provides an API for managing deals and storing data
func (*Deals) Store ¶
func (d *Deals) Store(ctx context.Context, addr string, data io.Reader, dealConfigs []deals.StorageDealConfig, duration uint64) ([]cid.Cid, []deals.StorageDealConfig, error)
Store creates a proposal deal for data using wallet addr to all miners indicated by dealConfigs for duration epochs
type Reputation ¶
type Reputation struct {
}
Reputation provides an API for viewing reputation data
func (*Reputation) AddSource ¶
AddSource adds a new external Source to be considered for reputation generation
func (*Reputation) GetTopMiners ¶
func (r *Reputation) GetTopMiners(ctx context.Context, limit int) ([]reputation.MinerScore, error)
GetTopMiners gets the top n miners with best score
Click to show internal directories.
Click to hide internal directories.