Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalToJson ¶
Types ¶
type Consumer ¶
type Consumer interface {
StartListening(ctx context.Context, wg *sync.WaitGroup)
StopListening() error
}
func NewConsumer ¶
func NewConsumer(config ConsumerConfig, handlerFunc MessageHandler) (Consumer, error)
type ConsumerConfig ¶
type IncomingMessage ¶ added in v1.1.0
type IncomingMessageAttributeValue ¶ added in v1.1.0
type MessageHandler ¶
type MessageHandler func(ctx context.Context, msg IncomingMessage) error
type OutgoingMessage ¶
type Producer ¶
type Producer interface {
Send(ctx context.Context, msg OutgoingMessage) (*string, error)
}
func NewProducer ¶
func NewProducer(config ProducerConfig) (Producer, error)
type ProducerConfig ¶
type ProducerConfig struct {
QueueConfig
Timeout time.Duration
}
type QueueConfig ¶ added in v1.0.0
Directories
¶
| Path | Synopsis |
|---|---|
|
gopher
command
|
|
|
panic
command
|
|
|
simpleConsume
command
|
|
|
simpleProduce
command
|
|
Click to show internal directories.
Click to hide internal directories.
