Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPMiddleware ¶ added in v1.5.0
type HTTPMiddleware interface { // Return a http handler with middleware as the parent handler HandleFunc(http.HandlerFunc) http.HandlerFunc }
type HTTPRouter ¶ added in v1.5.0
type PGQueue ¶ added in v1.5.5
type PGQueue interface { Task // Return the worker name Worker() string // Register a ticker with a callback, and return the registered ticker RegisterTicker(context.Context, schema.TickerMeta, PGCallback) (*schema.Ticker, error) // Register a queue with a callback, and return the registered queue RegisterQueue(context.Context, schema.Queue, PGCallback) (*schema.Queue, error) // Create a task for a queue with a payload and optional delay, and return it CreateTask(context.Context, string, any, time.Duration) (*schema.Task, error) // Delete a ticker by name DeleteTicker(context.Context, string) error }
type Plugin ¶
type Plugin interface { // Return the unique name for the plugin Name() string // Return a description of the plugin Description() string // Create a task from a plugin New(context.Context) (Task, error) }
Plugin represents a service
Click to show internal directories.
Click to hide internal directories.