Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWorker ¶
type MockWorker struct {
Sub amsPb.Subscription
SubStatus string
// contains filtered or unexported fields
}
MockWorker is to be used as a dummy worker when we want the push actual worker functionality
func (*MockWorker) Consumer ¶
func (w *MockWorker) Consumer() consumers.Consumer
func (*MockWorker) Start ¶
func (w *MockWorker) Start()
func (*MockWorker) Status ¶
func (w *MockWorker) Status() string
func (*MockWorker) Stop ¶
func (w *MockWorker) Stop()
func (*MockWorker) Subscription ¶
func (w *MockWorker) Subscription() *amsPb.Subscription
type Worker ¶
type Worker interface {
// Start starts the the push functionality based on the type of the worker
Start()
// Stop cancels the push functionality
Stop()
// Subscription returns the currently active subscription that is being handled by the worker
Subscription() *amsPb.Subscription
// Consumer returns the consumer that the worker is using
Consumer() consumers.Consumer
// Status returns the status of the worker
Status() string
}
Worker encapsulates the flow of consuming, sending and acknowledging
type WorkerStatus ¶
type WorkerStatus string
Click to show internal directories.
Click to hide internal directories.