pubsub

package
v0.0.0-...-476b611 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

type PubSub interface {
	// Publish publishes a message to a topic and optionally blocks for that message to be acknowledged by the server
	Publish(ctx context.Context, topic string, message []byte, block bool) error
	// Subscribe subscribes to a topic and processes messages using the given handler func
	Subscribe(ctx context.Context, topic string, handler func(ctx context.Context, message []byte) error) error
}

PubSub is a wrapper around the Pub/Sub client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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