stomp

package
v0.0.0-...-f0caac9 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Overview

Dozer: stomp protocol module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DozerProtocolStomp

type DozerProtocolStomp struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Stomp protocol type.

func (*DozerProtocolStomp) Close

func (p *DozerProtocolStomp) Close() error

Unsubscribe and disconnect.

func (*DozerProtocolStomp) Dial

func (p *DozerProtocolStomp) Dial(typ, host string, port int64) (uint64, error)

Connect to a stomp server

func (*DozerProtocolStomp) Init

func (p *DozerProtocolStomp) Init(args ...string) error

Intialize the stomp protocol

func (*DozerProtocolStomp) RecvFrom

func (p *DozerProtocolStomp) RecvFrom(id uint64, dest string, messages chan []byte, quit chan bool) error

Receive messages from a queue/topic and forward them to a channel until a quit signal fires.

func (*DozerProtocolStomp) SendTo

func (p *DozerProtocolStomp) SendTo(id uint64, dest string, messages chan []byte, quit chan bool) error

Send messages to a queue/topic from a channel until a quit signal fires.

Jump to

Keyboard shortcuts

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