Documentation ¶
Overview ¶
Package google is a wrapper of the original "cloud.google.com/go/pubsu" library.
Only contains basic publish, subscribe, and close methods. Data will be encoded to JSON before publishing the message.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel struct {
// contains filtered or unexported fields
}
Channel is google pubsub channel.
type Client ¶
Client is google pubsub client.
func New ¶
New to create new google pubsub client.
Required google service account credential. https://cloud.google.com/pubsub/docs/publish-receive-messages-client-library.
If haven't set env "GOOGLE_APPLICATION_CREDENTIALS", you can provide the credential json file path in the param.
Click to show internal directories.
Click to hide internal directories.