msgqueue

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

type Publisher interface {
	Publish([]byte) error
}

Publisher is the interface that wraps the basic Publish method.

Publish publishes the message data to the specified queue.

type Subscriber

type Subscriber interface {
	Subscribe(handler.MSGHandlerFunc) error
}

Subscriber is the interface that wraps the basic Subscribe method.

Subscribe opens a connection to the specified queue, and triggers the handler function on each received message data. It is expected to block.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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