Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { ServiceName string Provider Provider Middleware []Middleware }
Client holds a reference to a Provider
type MessageHandler ¶
type Middleware ¶
type Middleware interface {
PublisherMsgInterceptor(serviceName string, next PublishHandler) PublishHandler
}
Middleware is an interface to provide subscriber and publisher interceptors
type NoopProvider ¶
type NoopProvider struct{}
NoopProvider is a simple provider that does nothing, for testing, defaults
func (NoopProvider) PollMessages ¶
func (np NoopProvider) PollMessages(queueURL string, handler MessageHandler) error
Subscribe does nothing
type PublishHandler ¶
type PublishHandler func(topicARN string, message interface{}, messageAttributes map[string]interface{}) error
PublishHandler wraps a call to publish, for interception
Click to show internal directories.
Click to hide internal directories.