Documentation ¶
Index ¶
- type Client
- func (c *Client) Ack(ctx context.Context, project, subscription string, ids ...string) error
- func (c *Client) Extend(ctx context.Context, project, subscription string, id string, deadline int) error
- func (c *Client) Publish(ctx context.Context, project, topic string, messages ...Message) ([]string, error)
- func (c *Client) Pull(ctx context.Context, project, subscription string, max int) ([]Message, error)
- type Error
- type Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a Google Pub/Sub client.
func (*Client) Extend ¶
func (c *Client) Extend(ctx context.Context, project, subscription string, id string, deadline int) error
Extend extends the acknowledgement deadline for a specific message.
Click to show internal directories.
Click to hide internal directories.