Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶ added in v0.4.0
type Interface interface { Run(ctx context.Context) error API() internalapi.Interface }
type Options ¶
type Options struct { // Log is the logger to use for logging. Log logr.Logger // Key is the key to use for storing cron entries. Key *key.Key // Partitioner is the partitioner to use for partitioning cron entries. Partitioner partitioner.Interface // Client is the etcd client to use for storing cron entries. Client client.Interface // TriggerFn is the function to call when a cron job is triggered. TriggerFn api.TriggerFunction // CounterGarbageCollectionInterval is the interval at which to run the // garbage collection for counters is run. Counters are also garbage // collected on shutdown. Counters are batch deleted, so a larger value // increases the counter bucket and reduces the number of database // operations. // This value rarely needs to be set and is mostly used for testing. A small // interval value will increase database operations and thus degrade cron // performance. // Defaults to 180 seconds. CounterGarbageCollectionInterval *time.Duration }
Options are the options for creating a new engine instance.
Click to show internal directories.
Click to hide internal directories.