Documentation ¶
Index ¶
Constants ¶
View Source
const (
ControllerName = "challenges"
)
View Source
const MaxChallengesPerSchedule = 20
MaxChallengesPerSchedule is the maximum number of challenges that can be scheduled with a single call to the scheduler. This provides a very crude rate limit on how many challenges we will schedule per second. It may be better to remove this altogether in favour of some other method of rate limiting creations. TODO: make this configurable
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { controllerpkg.Context // contains filtered or unexported fields }
func New ¶
func New(ctx *controllerpkg.Context) *Controller
func (*Controller) Run ¶
func (c *Controller) Run(workers int, stopCh <-chan struct{}) error
Click to show internal directories.
Click to hide internal directories.