nsq

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBus

func NewBus(producer *gonsq.Producer, consumer *gonsq.Consumer) goevents.Bus

NewBus creates an event bus

Types

type Consumer

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

Consumer represents a message consumer

func (*Consumer) AddHandler

func (consumer *Consumer) AddHandler(handler goevents.MessageHandler)

AddHandler adds a message handler to consumer

type Message

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

Message represents a message

func (*Message) Decode

func (message *Message) Decode() ([]byte, error)

Decode the message

Jump to

Keyboard shortcuts

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