pubsub

package
v0.0.0-...-75b6e65 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PubSubEvents = pubsubEvents{
	BlockMined:         "BLOCK.MINED",
	TransactionCreated: "TRANSACTION.CREATED",
	ChainPublished:     "CHAIN.PUBLISHED",
	ChainRequested:     "CHAIN.REQUESTED",
}

PubSubEvents Constants

Functions

func NewPubSub

func NewPubSub(exchange string, queue string)

NewPubSub Function

func Publish

func Publish(data Message)

Publish Method

func Subscribe

func Subscribe() <-chan Message

Subscribe Method

Types

type Message

type Message struct {
	Event string
	Data  interface{}
}

Message Structure

type PubSub

type PubSub struct {
	// contains filtered or unexported fields
}

PubSub Struct

Jump to

Keyboard shortcuts

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