项目作者: zianwar

项目描述 :
Message broker example using golang
高级语言: Go
项目地址: git://github.com/zianwar/go-message-broker.git
创建时间: 2019-06-07T07:13:53Z
项目社区:https://github.com/zianwar/go-message-broker

开源协议:

下载


go-message-broker

A minimal implementation of a message broker in Go which satisfies the following interface:

  1. type Message interface{}
  2. type Broker interface {
  3. Subscribe(channel string) (<-chan Message, error)
  4. Unsubscribe(channel string) error
  5. Publish(channel string, m Message) error
  6. Close() error
  7. }

Imlementations:

  • In-memory using go channels
  • Redis PubSub