Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBusy = errors.New("busy scheduling previous update")
Functions ¶
This section is empty.
Types ¶
type CoordinatorMetricer ¶ added in v1.4.3
type DiskManager ¶
type GamePlayer ¶
type GamePlayer interface { ValidatePrestate(ctx context.Context) error ProgressGame(ctx context.Context) types.GameStatus Status() types.GameStatus }
type PlayerCreator ¶
type PlayerCreator func(game types.GameMetadata, dir string) (GamePlayer, error)
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
func NewScheduler ¶
func NewScheduler(logger log.Logger, m SchedulerMetricer, disk DiskManager, maxConcurrency uint, createPlayer PlayerCreator, allowInvalidPrestate bool) *Scheduler
func (*Scheduler) Schedule ¶
func (s *Scheduler) Schedule(games []types.GameMetadata, blockNumber uint64) error
func (*Scheduler) ThreadActive ¶
func (s *Scheduler) ThreadActive()
func (*Scheduler) ThreadIdle ¶
func (s *Scheduler) ThreadIdle()
type SchedulerMetricer ¶
Click to show internal directories.
Click to hide internal directories.