Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudPublisher ¶
func (*CloudPublisher) PublishMessage ¶
type CloudSubscriber ¶
type CloudSubscriber struct { ProjectID string SubscriptionID string Subscription *pubsub.Subscription }
type Publisher ¶ added in v1.0.0
type Publisher interface {
PublishMessage(ctx context.Context, data Data) (messageID string, err error)
}
func NewCloudPublisher ¶
type Subscriber ¶ added in v1.0.0
type Subscriber interface {
Receive(context.Context, func(ctx context.Context, msg *pubsub.Message)) error
}
func NewCloudSubscriber ¶
func NewCloudSubscriber(projectID, subscriptionID, credentialsJSON string) (Subscriber, error)
func NewCloudSubscriberWithLimit ¶ added in v1.1.0
func NewCloudSubscriberWithLimit(projectID, subscriptionID, credentialsJSON string, maxOutstandingMessages, numGoroutines int) (Subscriber, error)
Click to show internal directories.
Click to hide internal directories.