Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DispatchMessage ¶
type DispatchMessage struct { Action string `json:"action"` Data json.RawMessage `json:"data"` }
DispatchMessage represents the structure of an SQS message used for dispatching actions.
type Dispatcher ¶
type Dispatcher struct{}
Dispatcher is responsible for dispatching actions based on the received messages.
func NewDispatcher ¶
func NewDispatcher() *Dispatcher
NewDispatcher creates a new Dispatcher instance.
func (*Dispatcher) Dispatch ¶
func (d *Dispatcher) Dispatch(msg string) error
Dispatch processes the given message string, extracts the action and data, and executes the appropriate action.
Click to show internal directories.
Click to hide internal directories.