messaging

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	Connect(uri string, opts Options)
	Close()
}

type Consumer

type Consumer interface {
	Consume(opts interface{}) ([][]byte, error)
}

type Options

type Options map[string]interface{}

type Publisher

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

type RabbitMQConnector

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

func (*RabbitMQConnector) Close

func (s *RabbitMQConnector) Close()

func (*RabbitMQConnector) Connect

func (s *RabbitMQConnector) Connect(uri string, o Options)

type RabbitMQConsumeSettings

type RabbitMQConsumeSettings struct {
	QueueName    string
	MessageCount uint
}

type RabbitMQPublishSettings

type RabbitMQPublishSettings struct {
	QueueName string
}

type RabbitMQStream

type RabbitMQStream struct {
	RabbitMQConnector
}

func (*RabbitMQStream) Consume

func (s *RabbitMQStream) Consume(opts interface{}) ([][]byte, error)

func (*RabbitMQStream) Publish

func (s *RabbitMQStream) Publish(msg []byte, opts interface{}) error

type Stream

type Stream interface {
	Connector
	Publisher
	Consumer
}

func NewRabbitMQStream

func NewRabbitMQStream(uri string, o Options) Stream

Jump to

Keyboard shortcuts

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