messaging

package
v0.0.0-...-269b2a8 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package messaging implements all service bus operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MsgHandler

func MsgHandler(msg *nats.Msg)

MsgHandler handles messages received for a particular subject

Types

type Broker

type Broker interface {
	Publish(string, []byte) error
}

type Store

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

func Run

func Run(url string) (*Store, error)

Run sets up a service bus connection. It also subscribes our app to configured topics. Returns a Broker instance and an error if any occured.

func (*Store) Publish

func (s *Store) Publish(subject string, data []byte) error

Jump to

Keyboard shortcuts

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