pubsub

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidPubsubType = errors.New("invalid pubsub type")

ErrInvalidPubsubType is error for invalid pubsub type.

Functions

func New

func New(pubsubType PubsubType, address string, password string) (pubsub.PubSub, error)

New to create new pubsub client depends on the type.

Types

type PubsubType

type PubsubType int8

PubsubType is type for pubsub.

const (
	Redis PubsubType = iota + 1
	RabbitMQ
	Google
)

Available types for pubsub.

Jump to

Keyboard shortcuts

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