pubsub

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(key string, x interface{})

Publish a message with a payload.

func Subscribe

func Subscribe(key string, callback SubscriptionCallback)

Subscribe to a publisher message

Types

type SubscriptionCallback

type SubscriptionCallback func(key string, x interface{})

SubscriptionCallback is the callback function for published messgages

Jump to

Keyboard shortcuts

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