publisher

package
v0.0.0-...-c8a8185 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Providers = map[string]NewPublisherFunc{}
)

Functions

This section is empty.

Types

type NewPublisherFunc

type NewPublisherFunc func(opts *Options) (Publisher, error)

type Options

type Options struct {
	Name   string
	Config interface{}
	Logger logger.Logger
}

type Publisher

type Publisher interface {
	Connect(ctx context.Context) (err error)
	Disconnect(ctx context.Context) (err error)
	Publish(ctx context.Context, payload []byte) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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