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: 0

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