Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Project string SubName string TopicName string Timeout int // contains filtered or unexported fields }
Message struct holds the information which is required to send message to messaging services like pub/sub or kafka
func NewPubSub ¶
NewPubSub function creates an instance of message which will send the data to service using the google cloud pub sub library
func NewPubSubWithOpts ¶ added in v1.1.16
func NewSubscription ¶
NewSubscription method will create a subscription
func (*Message) SendBackground ¶
SendBackground delivers the message in background
func (*Message) SendWithID ¶
SendWithID will check whether message delivery was acknowledged by the service
Click to show internal directories.
Click to hide internal directories.