Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Messenger ¶
type Messenger struct { PubsubClient *pubsub.Client SubscriptionID string TopicID string Subscription *pubsub.Subscription }
A Messenger provies the API for interacting with a pubsub messaging queue (google Pub/Sub)
type MessengerInterface ¶
type Msg ¶
type Msg struct {
Data MsgContents `json:"data"`
}
type MsgContents ¶
type MsgContents struct {
Message string `json:"message"`
}
type NoopMessenger ¶
type NoopMessenger struct{}
func (*NoopMessenger) DeleteSub ¶
func (m *NoopMessenger) DeleteSub() error
func (*NoopMessenger) RunListener ¶
func (m *NoopMessenger) RunListener(ctx context.Context, msgChan chan<- Msg) error
Click to show internal directories.
Click to hide internal directories.