Documentation ¶
Index ¶
- func CreateSubscriptionIfNotExists(ctx context.Context, client *pubsub.Client, subscription string, ...) (*pubsub.Subscription, error)
- func CreateTopicIfNotExists(ctx context.Context, client *pubsub.Client, topic string) (*pubsub.Topic, error)
- func NewClient(ctx context.Context, projectID string, options ...option.ClientOption) (*pubsub.Client, error)
- func Publish(ctx context.Context, client *pubsub.Client, topic string, message interface{}) (string, error)
- func SubscribeToTopic(ctx context.Context, client *pubsub.Client, topic string, subscription string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTopicIfNotExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.