Documentation ¶
Index ¶
Constants ¶
View Source
const ( InTransit = DispatchState("in-transit") Retrying = DispatchState("retrying") Error = DispatchState("error") Success = DispatchState("success") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchEvent ¶
type DispatchEvent struct { State DispatchState ReceiverId string ReceiverDesc string Retries int Error error Response *clients.Response }
DispatchEvent provides a struct for storing dispatching events.
type Dispatcher ¶
type Dispatcher interface { Dispatch(ctx context.Context) error Events() chan DispatchEvent Done() chan struct{} SetMockClient(impl clients.ClientImpl) }
Dispatcher provides an interface for implementing dispatching protocol.
Click to show internal directories.
Click to hide internal directories.