client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 12 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSubClient

type PubSubClient struct {
	Notifications chan []string
	// contains filtered or unexported fields
}

func New

func New(confCtx *config.Context) *PubSubClient

func (*PubSubClient) Close

func (p *PubSubClient) Close()

func (*PubSubClient) Publish

func (p *PubSubClient) Publish(topic string, message string)

guaranteed to never block, but can lose all but the latest message per topic

func (*PubSubClient) Subscribe

func (p *PubSubClient) Subscribe(topic string)

Jump to

Keyboard shortcuts

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