pubsub

package
v0.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAgentClosed   = errors.New("agent closed")
	ErrTopicNotFound = errors.New("topic not found")
)

Functions

This section is empty.

Types

type Agent

type Agent interface {
	Publish(ctx context.Context, topic string, msg interface{}) error
	Subscribe(ctx context.Context, topics ...string) (<-chan Event, error)
	Close() error
}

type Event

type Event struct {
	Topic   string
	Payload string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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