jobs

package
v0.0.0-...-d0a0e58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crawler

type Crawler struct {
	// contains filtered or unexported fields
}

func NewCrawler

func NewCrawler(filrepApi string, repo *repo.Manager) *Crawler

func (*Crawler) Init

func (c *Crawler) Init(ctx context.Context)

func (*Crawler) Run

func (c *Crawler) Run(ctx context.Context)

type FilecoinSyncer

type FilecoinSyncer struct {
	// contains filtered or unexported fields
}

func NewFilecoinSyncer

func NewFilecoinSyncer(filClient *filclient.FilClient, repo *repo.Manager) *FilecoinSyncer

func (*FilecoinSyncer) Init

func (s *FilecoinSyncer) Init(ctx context.Context)

func (*FilecoinSyncer) Run

func (s *FilecoinSyncer) Run(ctx context.Context)

type MinerList

type MinerList struct {
	Pagination *struct {
		Total  int
		Offset int
		Limit  int
	}
	Miners []*struct {
		Address         string
		Status          bool
		UptimeAverage   float64
		Price           *string
		VerifiedPrice   *string
		MinPieceSize    *decimal.Decimal
		MaxPieceSize    *decimal.Decimal
		RawPower        decimal.Decimal
		QualityAdjPower decimal.Decimal
		IsoCode         string
		Region          string
		Score           decimal.Decimal
		Scores          *struct {
			Total                  decimal.Decimal
			Uptime                 decimal.Decimal
			StorageDeals           decimal.Decimal
			CommittedSectorsProofs decimal.Decimal
		}
		FreeSpace    *decimal.Decimal
		StorageDeals *struct {
			Total           uint64
			NoPenalties     uint64
			SuccessRate     decimal.Decimal
			AveragePrice    decimal.Decimal
			DataStored      decimal.Decimal
			Slashed         uint64
			Terminated      uint64
			FaultTerminated uint64
		}
	}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL