pubsub

package
v0.0.0-...-e636a3f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package pubsub simulates a package that provides publication/subscription type services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubSub

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

PubSub provides access to a queue system.

func New

func New(host string) *PubSub

New creates a pubsub value for use.

func (*PubSub) Publish

func (ps *PubSub) Publish(key string, v interface{}) error

Publish sends the data for the specified key.

func (*PubSub) Subscribe

func (ps *PubSub) Subscribe(key string) error

Subscribe sets up an request to receive messages for the specified key.

Jump to

Keyboard shortcuts

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