Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = &cobra.Command{ Use: "subscribe", Short: "subscribe", Run: func(cmd *cobra.Command, args []string) { sqsQueueURL := config.Read().EventPublisherSQSQueueURL listener, err := subscriber.NewSQSSubscriber(sqsQueueURL) if err != nil { log.Error(err) return } go func() { <-listener.Start() }() go func() { err := <-listener.ErrorChannel log.Error(err) }() for m := range listener.ListenChannel { fmt.Println(*m.Body) listener.Delete(m.ReceiptHandle) } }, }
Cmd is the command for the cli tool
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.