reverse

package
v0.0.0-...-028f272 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package reverse provide a limited variant of pubsub where the subscriber creates the listener and the publisher connects. Used when the publisher is not a long-running agent, and there is only one subscriber.

Package reverse provide a limited variant of pubsub where the subscriber creates the listener and the publisher connects. Used when the publisher is not a long-running agent, and there is only one subscriber.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubscriber

func NewSubscriber(log *base.LogObject, agent string, topic interface{}) <-chan string

NewSubscriber creates a goroutine which will send strings to the channel Returns the channel to the caller XXX return chan?

func Publish

func Publish(log *base.LogObject, agent string, data interface{}) error

Publish publishes data to

Types

This section is empty.

Jump to

Keyboard shortcuts

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