dozer

package module
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: 2 Imported by: 0

README

Dozer

Messaging abstractions written in Go.

Current platform support:

  • ActiveMQ (stomp)
  • RabbitMQ (AMQP)
  • Scalable Protocols (mangos)
  • Kafka
  • Nats

Examples

Documentation

Overview

Dozer: main module

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dozer

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

Core dozer type.

func Init

func Init(name string) *Dozer

Create a new Dozer instance.

func (*Dozer) Consumer

func (d *Dozer) Consumer(dest string) *Dozer

Set destination in consumer mode

func (*Dozer) Dial

func (d *Dozer) Dial(host string, port int64) error

Connect or bind to a host and port.

func (*Dozer) Producer

func (d *Dozer) Producer(dest string) *Dozer

Set destination in producer mode

func (*Dozer) RecvLoop

func (d *Dozer) RecvLoop(messages chan []byte, quit chan bool) error

Receive messages from the lower level protocol and forward them to a channel until a quit signal fires.

func (*Dozer) SendLoop

func (d *Dozer) SendLoop(messages chan []byte, quit chan bool) error

Send messages to the lower level protocol from a channel until a quit signal fires.

func (*Dozer) WithCredentials

func (d *Dozer) WithCredentials(user, pass string) *Dozer

Set the auth credentials

Directories

Path Synopsis
Dozer: protocol module
Dozer: protocol module
amqp
Dozer: amqp protocol module
Dozer: amqp protocol module
kafka
Dozer: kafka protocol module
Dozer: kafka protocol module
mangos
Dozer: Mangos protocol module
Dozer: Mangos protocol module
nats
Dozer: nats protocol module
Dozer: nats protocol module
stomp
Dozer: stomp protocol module
Dozer: stomp protocol module

Jump to

Keyboard shortcuts

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