Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateClusterClient ¶
CreateClusterClient creates a new client for the cluster
Types ¶
type TaskQueue ¶
type TaskQueue struct { Name string // contains filtered or unexported fields }
TaskQueue manages a work queue through an independent worker that invokes the given sync function for every work item inserted.
func NewTaskQueue ¶
func NewTaskQueue(name string, keyFunc func(obj interface{}) (string, error), syncFn func(string) error) *TaskQueue
NewTaskQueue creates a new task queue with the given sync function. The sync function is called for every element inserted into the queue.
Click to show internal directories.
Click to hide internal directories.