Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GooglePubSub ¶
GooglePubSub - A GooglePubSub object indicates the project id and topic id of a PubSub topic in GCP.
func (*GooglePubSub) InProject ¶
func (g *GooglePubSub) InProject(projectID string) *GooglePubSub
InProject sets the project id of a GooglePubSub object.
func (*GooglePubSub) Pub ¶
func (g *GooglePubSub) Pub(data []byte) error
Pub publishes a data record in bytes to a topic in GCP indicted by a GooglePubSub object.
func (*GooglePubSub) Topic ¶
func (g *GooglePubSub) Topic(topicID string) *GooglePubSub
Topic sets the topic id of a GooglePubSub object.
Click to show internal directories.
Click to hide internal directories.