zmq

package
v1.6.4-0...-ea8c640 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

* 用来内部消息处理的订阅和处理,通过go 通道来实现 ,相当于内部的消息总线

	异步处理消息消费,通过go 的并发处理
	没有持久化功能,程序关闭,所有的订阅和消费都会消失。
	没有消息处理超时处理,消息消费也没有做异常处理。
  没有超时或消费异常,再次消费。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(messageName string, handler MessageHandler)

* 订阅消息处理

func Trigger

func Trigger(messageName string, data ...interface{})

* 消息源,触发消息

Types

type MessageHandler

type MessageHandler func(data ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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