Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FetcherJob ¶
type FetcherJob struct {
// contains filtered or unexported fields
}
FetcherJob represent a job to crawl rates at given block
func NewFetcherJob ¶
func NewFetcherJob(c *cli.Context, order int, block uint64, addrs []string, attempts int) *FetcherJob
NewFetcherJob return an instance of FetcherJob
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool represents a group of workers
func NewPool ¶
func NewPool(sugar *zap.SugaredLogger, maxWorkers int, rateStorage storage.ReserveRatesStorage) *Pool
NewPool returns a pool of workers
func (*Pool) GetLastCompleteJobOrder ¶
GetLastCompleteJobOrder return the order of the latest completed job
Click to show internal directories.
Click to hide internal directories.