Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GooglePubSubClient ¶
func (*GooglePubSubClient) Close ¶
func (g *GooglePubSubClient) Close() error
func (*GooglePubSubClient) CreateSubscription ¶
func (g *GooglePubSubClient) CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (Subscription, error)
func (*GooglePubSubClient) Subscription ¶
func (g *GooglePubSubClient) Subscription(id string) Subscription
func (*GooglePubSubClient) Topic ¶
func (g *GooglePubSubClient) Topic(id string) Topic
type GooglePublishResult ¶
type GooglePublishResult struct {
// contains filtered or unexported fields
}
type GoogleSubscription ¶
type GoogleSubscription struct {
// contains filtered or unexported fields
}
func (*GoogleSubscription) ID ¶
func (g *GoogleSubscription) ID() string
type GoogleTopic ¶
type GoogleTopic struct {
// contains filtered or unexported fields
}
func (*GoogleTopic) GetInstance ¶
func (g *GoogleTopic) GetInstance() *pubsub.Topic
func (*GoogleTopic) Publish ¶
func (g *GoogleTopic) Publish(ctx context.Context, msg *pubsub.Message) PublishResult
type PubSubClient ¶
type PubSubClient interface {
CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (Subscription, error)
Subscription(id string) Subscription
Topic(id string) Topic
Close() error
}
PubSubClient defines the methods required for Pub/Sub client interaction.
type PublishResult ¶
PublishResult abstracts the result of publishing a message.
Click to show internal directories.
Click to hide internal directories.