Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Run runs the API. Run(ctx context.Context) error // Add adds a job to the cron instance. Add(ctx context.Context, name string, job *cronapi.Job) error // Get gets a job from the cron instance. Get(ctx context.Context, name string) (*cronapi.Job, error) // Delete deletes a job from the cron instance. Delete(ctx context.Context, name string) error // DeletePrefixes deletes all jobs with the given prefixes from the cron // instance. DeletePrefixes(ctx context.Context, prefixes ...string) error // List lists all jobs under a given job name prefix. List(ctx context.Context, prefix string) (*cronapi.ListResponse, error) // DeliverablePrefixes registers the given Job name prefixes as being // deliverable. Any Jobs that reside in the staging queue because they were // undeliverable at the time of trigger but whose names match these prefixes // will be immediately re-triggered. // The returned CancelFunc should be called to unregister the prefixes, // meaning these prefixes are no longer delivable by the caller. Duplicate // Prefixes may be called together and will be pooled together, meaning that // the prefix is still active if there is at least one DeliverablePrefixes // call that has not been unregistered. DeliverablePrefixes(ctx context.Context, prefixes ...string) (context.CancelFunc, error) }
Interface is the internal API that implements the API backend.
Click to show internal directories.
Click to hide internal directories.