pubsub

package
v1.15.21 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 2 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(topic string, message *gopubsub.Message) error
	Subscribe(topic string, handler gopubsub.Handler) error
}

PubSub ...

func New

func New(ctx context.Context, ps gopubsub.PubSub) PubSub

New creates a pubsub at the given context.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳