pubsub

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package pubsub implements a publishing or subscription service. Subscribe to it using system/subscribe/service messages; subscribers will receive non-system messages that arrive at the publisher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(ctx *b.Context, spec m.Map, msg b.Message) bool

func Startup

func Startup(ctx *b.Context)

func Subscribe

func Subscribe(ctx *b.Context, spec m.Map, msg b.Message) bool

Types

type PubState

type PubState struct {
	Subs Subscriptions
}

func (*PubState) GetSessionMailbox

func (st *PubState) GetSessionMailbox(sid string) chan b.Message

type Subscriptions

type Subscriptions map[b.Address]bool

Jump to

Keyboard shortcuts

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