Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendGCS ¶
func SendGCS(ctx context.Context, log logrus.FieldLogger, client *pubsub.Client, projectID, subID string, settings *pubsub.ReceiveSettings, receivers chan *Notification) error
SendGCS converts GCS pubsub messages into Notification structs and sends them to receivers.
Connects to the specified subscription with optionally specified settings. Receives pubsub messages from this subscription and converts it into a Notification struct.
- Nacks any message it cannot parse.
Sends the notification to the receivers channel.
- Nacks messages associated with any unsent Notifications.
- Acks as soon as the Notification is sent.
Types ¶
Click to show internal directories.
Click to hide internal directories.