package
1.12.1
Repository: https://github.com/contiamo/go-base.git
Documentation: pkg.go.dev

# Functions

NewScheduleWorker creates a new task scheduling worker.
NewTaskWorker creates a new Task Worker instance.

# Variables

ErrScheduleQueueIsEmpty occurs when there is no schedule with the `next_execution_time` in the past.
TaskQueueMetrics provides access to the prometheus metric objects for the task queue.
TaskSchedulingMetrics provides access to the prometheus metric objects for task scheduling.

# Interfaces

TaskHandler is a type alias for a method that parses a task and returns any processing errors.
Worker provides methods to do some kind of work.

# Type aliases

TaskHandlerFunc is an adapter that allows the use of a normal function as a TaskHandler.