pubsub

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Domain = "pubsub.googleapis.com"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(options ...pubsub_config.Option) *Client

func (*Client) Publish

func (c *Client) Publish(
	ctx context.Context,
	project string,
	topic string,
	request *publish_request.Request,
	options ...fetch_config.Option,
) (*publish_response.Response, error)

Publish publishes the messages in the request to the given topic and returns the server-assigned message ids. The runtime identity must have the pubsub.publisher role on the topic.

Directories

Path Synopsis
types

Jump to

Keyboard shortcuts

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