mq

package
v5.2.1-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: LGPL-3.0 Imports: 10 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DequeueNumber float64 = 0

DequeueNumber dequeue number

View Source
var EnqueueNumber float64 = 0

EnqueueNumber enqueue number

Functions

This section is empty.

Types

type ActionMQ

type ActionMQ interface {
	Enqueue(context.Context, string, string) error
	Dequeue(context.Context, string) (string, error)
	TopicIsExist(string) bool
	GetAllTopics() []string
	Start() error
	Stop() error
	MessageQueueSize(topic string) int64
}

ActionMQ 队列操作

func NewActionMQ

func NewActionMQ(ctx context.Context, c option.Config) ActionMQ

NewActionMQ new etcd mq

Jump to

Keyboard shortcuts

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