dispatcher

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL