pubsub

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithoutCancel

func WithoutCancel(ctx context.Context) context.Context

Types

type Client

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

func New

func New(opt ...OptionFunc) *Client

func (*Client) Close

func (c *Client) Close()

func (*Client) Topic

func (c *Client) Topic(id string) *Topic

type Event

type Event interface {
	Attributes() map[string]string
}

type OptionFunc

type OptionFunc = func(option *options)

func WithProject

func WithProject(project string) OptionFunc

func WithRetries

func WithRetries(retries int) OptionFunc

func WithRetryDelay

func WithRetryDelay(retryDelay time.Duration) OptionFunc

type Topic

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

func (*Topic) Publish

func (t *Topic) Publish(ctx context.Context, value interface{})

func (*Topic) PublishSync

func (t *Topic) PublishSync(ctx context.Context, value interface{}) error

Jump to

Keyboard shortcuts

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