message

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2020 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package message 存放消息队列相关代码

Index

Constants

View Source
const (
	TopicOne = "One"
)

主题定义

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

Base 基底

func (*Base) Consume

func (b *Base) Consume(topic, channel string)

Consume 消费

func (*Base) Produce

func (b *Base) Produce(topic string, body []byte) error

Produce 生产

func (*Base) Publish

func (b *Base) Publish(topic string, body []byte) error

Publish 发布

func (*Base) Subscribe

func (b *Base) Subscribe(topic, channel string)

Subscribe 订阅

Jump to

Keyboard shortcuts

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