channel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllProviderNames = []ProviderName{INMEM, REDIS, NATS, STAN, KAFKA}

Functions

This section is empty.

Types

type Provider

type Provider interface {
	Publish(ctx context.Context, event *eventgate.Event) error
	GetChannel(ctx context.Context) (chan *eventgate.Event, error)
	Close() error
}

func GetChannelProvider

func GetChannelProvider(provider ProviderName, lgger *logger.Logger, providerConfig map[string]string) (Provider, error)

type ProviderName

type ProviderName string
const (
	NATS  ProviderName = "nats"
	STAN  ProviderName = "stan"
	INMEM ProviderName = "inmem"
	REDIS ProviderName = "redis"
	KAFKA ProviderName = "kafka"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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