mq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageQueueTypeNATS = "nats"
)

Message queue type constants

Variables

View Source
var (
	ErrorMessageQueueTypeUnsupported = errors.New("unsupported message queue type")
)

Functions

This section is empty.

Types

type MQClient

type MQClient interface {
	Publish(string, interface{}) error
	Subscribe(string, func(interface{})) (int64, error)
	SubscribeWithGroup(string, string, func(interface{})) (int64, error)
	Unsubscribe(int64) error
	Group(int64) (string, error)
	Close() error
}

func NewNATSClient

func NewNATSClient(addrs string) (MQClient, error)

NewNATSClient return MessageQueueClient

Jump to

Keyboard shortcuts

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