gmq

package
v0.0.0-...-f3abbe6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQ

type MQ interface {
	Pub(subj string, b []byte) error
	Sub(subj string, callback SubCallback) error
	UnSub(subj string, callback SubCallback) error

	Push(queue string, b []byte) error
	Pop(queue string) ([]byte, error)

	Request(service string, b []byte) error
	Reply(service string, callback ReplyCallback) error
	UnReply(service string, callback ReplyCallback) error
}

type ReplyCallback

type ReplyCallback func(service string) ([]byte, error)

type SubCallback

type SubCallback func(subj string, b []byte)

Jump to

Keyboard shortcuts

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