nats_muxer

package
v0.0.0-...-8178c74 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2014 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeoutError = errors.New("timeout")

Functions

func HandleMuxedNATSRequest

func HandleMuxedNATSRequest(client yagnats.NATSClient, subject string, callback MuxedHandler) (int64, error)

Types

type MuxedHandler

type MuxedHandler func([]byte) []byte

type NATSMuxerClient

type NATSMuxerClient struct {
	// contains filtered or unexported fields
}

func NewNATSMuxerClient

func NewNATSMuxerClient(client yagnats.NATSClient) *NATSMuxerClient

func (*NATSMuxerClient) ListenForResponses

func (c *NATSMuxerClient) ListenForResponses() error

func (*NATSMuxerClient) Request

func (c *NATSMuxerClient) Request(subject string, payload []byte, timeout time.Duration) ([]byte, error)

func (*NATSMuxerClient) Shutdown

func (c *NATSMuxerClient) Shutdown() error

Jump to

Keyboard shortcuts

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