mq

package
v0.0.0-...-1369677 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Consume() (worker.Task, error)
}

type LocalQueue

type LocalQueue interface {
	Producer
	Consumer
}

type Producer

type Producer interface {
	Produce(task worker.Task) error
}

type Queue

type Queue interface {
	LocalQueue
	io.Closer
}

func NewMQ

func NewMQ(mqType string) (Queue, error)

type ThirdConsumer

type ThirdConsumer interface {
	Subscribe(topic, queueName string, fn kafka.MsgCb) error
}

type ThirdProducer

type ThirdProducer interface {
	Publish(topic string, body []byte, reqID string) error
}

type ThirdQueue

type ThirdQueue interface {
	ThirdProducer
	ThirdConsumer
}

ThirdQueue 第三方mq

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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