Documentation ¶
Index ¶
- func NewClient(ctx context.Context, projectID string, opts ...option.ClientOption) (pubsub.Client, error)
- type TestClient
- type TestSubscription
- func (s *TestSubscription) Config(ctx context.Context) (pubsub.SubscriptionConfig, error)
- func (s *TestSubscription) Delete(ctx context.Context) error
- func (s *TestSubscription) Exists(ctx context.Context) (bool, error)
- func (s *TestSubscription) Update(ctx context.Context, cfg pubsub.SubscriptionConfig) (pubsub.SubscriptionConfig, error)
- type TestTopic
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestClient ¶
type TestClient struct {
Project string
}
TestClient is a test Pub/Sub client.
func (*TestClient) CreateSubscription ¶
func (c *TestClient) CreateSubscription(ctx context.Context, id string, cfg pubsub.SubscriptionConfig) (pubsub.Subscription, error)
CreateSubscription implements Client.CreateSubscription.
func (*TestClient) Subscription ¶
func (c *TestClient) Subscription(id string) pubsub.Subscription
Subscription implements Client.Subscription.
type TestSubscription ¶
type TestSubscription struct {
// contains filtered or unexported fields
}
TestSubscription is a test Pub/Sub subscription.
func (*TestSubscription) Config ¶
func (s *TestSubscription) Config(ctx context.Context) (pubsub.SubscriptionConfig, error)
Config implements Subscription.Config.
func (*TestSubscription) Delete ¶
func (s *TestSubscription) Delete(ctx context.Context) error
Delete implements Subscription.Delete.
func (*TestSubscription) Exists ¶
func (s *TestSubscription) Exists(ctx context.Context) (bool, error)
Exists implements Subscription.Exists.
func (*TestSubscription) Update ¶
func (s *TestSubscription) Update(ctx context.Context, cfg pubsub.SubscriptionConfig) (pubsub.SubscriptionConfig, error)
Update implements Subscription.Update.
Click to show internal directories.
Click to hide internal directories.