mqhandler

package
v0.0.0-...-a23e254 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQ

type MQ interface {
	Read(func(jsonStr []byte))
	Send(key string, value string)
	Delay(key string, value string, expire string)
}

MQ 队列应该实现的方法

type MQService

type MQService struct {
	// kafka.Kafka
	rabbitmq.Rabbitmq
}

MQService mq 服务,目前暂定 kafka, 包含 send 和 read 两个方法

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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