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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.