Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) CreatePublisher(topic string, opts ...PublishOption) (publisher.Publisher, error)
- func (c *Client) CreatePublisherInProject(topic, project string, opts ...PublishOption) (publisher.Publisher, error)
- func (c *Client) CreatePuller(subscription, topic string, opts ...ReceiveOption) (puller.Puller, error)
- func (c *Client) DeleteSubscription(id string) error
- func (c *Client) DeleteSubscriptionIfExist(id string) error
- func (c *Client) SubscriptionExists(id string) (bool, error)
- type Option
- type PublishOption
- type ReceiveOption
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidTopic = errors.New("pubsub: invalid topic")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreatePublisher ¶
func (*Client) CreatePublisherInProject ¶
func (*Client) CreatePuller ¶
func (*Client) DeleteSubscription ¶ added in v0.4.0
func (*Client) DeleteSubscriptionIfExist ¶ added in v0.4.0
type Option ¶
type Option func(*options)
func WithBackoff ¶
func WithLogger ¶
func WithMetrics ¶
func WithMetrics(registerer metrics.Registerer) Option
func WithRetries ¶
type PublishOption ¶
type PublishOption func(*publishOptions)
func WithPublishNumGoroutines ¶
func WithPublishNumGoroutines(n int) PublishOption
func WithPublishTimeout ¶
func WithPublishTimeout(timeout time.Duration) PublishOption
type ReceiveOption ¶
type ReceiveOption func(*receiveOptions)
func WithMaxExtension ¶
func WithMaxExtension(d time.Duration) ReceiveOption
func WithMaxOutstandingBytes ¶
func WithMaxOutstandingBytes(b int) ReceiveOption
func WithMaxOutstandingMessages ¶
func WithMaxOutstandingMessages(n int) ReceiveOption
func WithNumGoroutines ¶
func WithNumGoroutines(n int) ReceiveOption
Click to show internal directories.
Click to hide internal directories.