subscriber

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]NewSubscriberFunc{}
)

Functions

This section is empty.

Types

type NewSubscriberFunc

type NewSubscriberFunc func(opts *Options) (Subscriber, error)

type Options

type Options struct {
	Name     string
	Config   interface{}
	Logger   logger.Logger
	Callback func()
}

type Subscriber

type Subscriber interface {
	Connect(ctx context.Context) (err error)
	Disconnect(ctx context.Context) (err error)
	Subscribe(ctx context.Context) (err error)
	Unsubscribe(ctx context.Context) (err error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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