publishers

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQueueAddress

type MessageQueueAddress string

MessageQueueAddress is a simple string alias for the location of our event queue server.

type Publisher

type Publisher interface {
	Publish(ctx context.Context, data interface{}) error
}

Publisher produces events onto a queue.

type PublisherProvider

type PublisherProvider interface {
	ProviderPublisher(topic string) (Publisher, error)
}

PublisherProvider is a function that provides a Publisher for a given topic.

func ProvideRedisPublisherProvider

func ProvideRedisPublisherProvider(logger logging.Logger, address string) PublisherProvider

ProvideRedisPublisherProvider returns a PublisherProvider for a given address.

type Topic

type Topic string

Topic is a simple string alias for the location of our event queue server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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