Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message interface { ID() string Data() []byte Attributes() map[string]string PublishTime() time.Time Ack() Nack() }
func AdaptPubsubMessage ¶
AdaptMessage adapts a pubsub.Message so that it satisfies the Message interface.
type PublishResult ¶
type PubsubClient ¶
type PubsubClient interface { Topic(id string) Topic Topics(ctx context.Context) TopicIterator }
func AdaptPubsubClient ¶
func AdaptPubsubClient(c *pubsub.Client) PubsubClient
AdaptClient adapts a pubsub.Client so that it satisfies the Client interface.
type SubscriberClient ¶
type SubscriberClient interface { Close() error Pull(ctx context.Context, req *pubsubpb.PullRequest, opts ...gax.CallOption) (*pubsubpb.PullResponse, error) Acknowledge(ctx context.Context, req *pubsubpb.AcknowledgeRequest, opts ...gax.CallOption) error }
type Subscription ¶
type SubscriptionIterator ¶
type SubscriptionIterator interface {
Next() (Subscription, error)
}
type TopicIterator ¶
Click to show internal directories.
Click to hide internal directories.