Documentation ¶
Index ¶
Constants ¶
View Source
const ( New planStatus = iota InProgress Finished Error Invalid )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ScanInterval time.Duration PlanScanConcurrency int MaxProgressFileAge time.Duration AllowedUsers string IgnoredUserPattern string }
func (*Config) RegisterFlags ¶
type Scheduler ¶
func NewScheduler ¶
func NewScheduler(cfg Config, scfg blocksconvert.SharedConfig, l log.Logger, reg prometheus.Registerer, http *mux.Router, grpcServ *grpc.Server) (*Scheduler, error)
func (*Scheduler) NextPlan ¶
func (s *Scheduler) NextPlan(ctx context.Context, req *blocksconvert.NextPlanRequest) (*blocksconvert.NextPlanResponse, error)
Returns next plan that builder should work on.
Click to show internal directories.
Click to hide internal directories.