mq

package
v0.0.0-...-1b09624 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerTopicModel

type ConsumerTopicModel struct {
	Group string
	Topic string
}

type MQConsumer

type MQConsumer interface {
	RegisterByTopic(topic string, callback mq.IConsumerCallback) error
	Register(callback mq.IConsumerCallback) error
	Start() error
	Close() error
}

func NewMQConsumer

func NewMQConsumer(kind string, cluster string, confPath string, logPath string, topicModels []*ConsumerTopicModel) MQConsumer

type MQProducer

type MQProducer interface {
	Start() error
	Close() error
	Produce(topic string, msg string) error
}

func NewMQProducer

func NewMQProducer(kind string, cluster string, logPath string, confPath string, topics []string) MQProducer

Jump to

Keyboard shortcuts

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