test

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(ctx context.Context, projectID string, opts ...option.ClientOption) (pubsub.Client, error)

NewClient creates a new test Pub/Sub client.

Types

type TestClient

type TestClient struct {
	Project string
}

TestClient is a test Pub/Sub client.

func (*TestClient) Close

func (c *TestClient) Close() error

Close implements client.Close

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.

func (*TestClient) Topic

func (c *TestClient) Topic(id string) pubsub.Topic

Topic implements Client.Topic.

type TestSubscription

type TestSubscription struct {
	// contains filtered or unexported fields
}

TestSubscription is a test Pub/Sub subscription.

func (*TestSubscription) Config

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

Update implements Subscription.Update.

type TestTopic

type TestTopic struct {
	// contains filtered or unexported fields
}

TestTopic is a test Pub/Sub topic.

func (*TestTopic) Exists

func (t *TestTopic) Exists(ctx context.Context) (bool, error)

Exists implements Topic.Exists.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL