Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNilMessage = errors.New("nil message")
)
Functions ¶
This section is empty.
Types ¶
type MessageHandler ¶
type MessageHandler func(message *Message)
type Publisher ¶
func NewEventBridgePublisher ¶
func NewEventBridgePublisher(sess *session.Session, cfg *PublisherConfig) (Publisher, error)
type PublisherConfig ¶
type SqsMessage ¶
type Subscriber ¶
type Subscriber interface { Subscribe(key string, fn MessageHandler) Start(ctx context.Context) error Stop() }
func NewSQSSubscriber ¶
func NewSQSSubscriber(sess *session.Session, cfg *SubscriberConfig) (Subscriber, error)
type SubscriberConfig ¶
Click to show internal directories.
Click to hide internal directories.