Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Broker ¶
type Broker interface { GetConfig() *config.Config SetRegisteredTaskNames(names []string) IsTaskRegistered(name string) bool StartConsuming(consumerTag string, concurrency int, p TaskProcessor) (bool, error) StopConsuming() SendHeartbeat(heartbeat *monitor.Heartbeat, queue string) error ConsumeHeartbeat(queue string) (*monitor.Heartbeat, error) Publish(ctx context.Context, task *tasks.Signature) error GetPendingTasks(queue string) ([]*tasks.Signature, error) AdjustRoutingKey(s *tasks.Signature) // cycle signatures monitor GetCycleTasks(queue string) ([]*tasks.Signature, error) AddCycleTask(signature *tasks.Signature) (*tasks.Signature, error) DeleteCycleTask(uuid string) error }
Broker - a common interface for all brokers
Click to show internal directories.
Click to hide internal directories.