messagebroker

package module
v0.0.0-...-2c42576 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2015 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Consume(queue string, onMessage func(body []byte)) error
}

type MessageBroker

type MessageBroker interface {
	Publisher
	Consumer
}

type PostgresqlConnectionConfig

type PostgresqlConnectionConfig struct {
	Host     string // host (e.g. localhost) or path to unix domain socket directory (e.g. /private/tmp)
	Port     uint16 // default: 5432
	Database string
	User     string // default: OS user name
	Password string
}

type PostgresqlMessageBroker

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

func NewPostgresqlMessageBroker

func NewPostgresqlMessageBroker(config *PostgresqlConnectionConfig) (*PostgresqlMessageBroker, error)

func (*PostgresqlMessageBroker) Consume

func (e *PostgresqlMessageBroker) Consume(queue string, onMessage func(body []byte)) error

func (*PostgresqlMessageBroker) Publish

func (e *PostgresqlMessageBroker) Publish(routing string, body []byte) error

type Publisher

type Publisher interface {
	Publish(routing string, body []byte) error
}

Directories

Path Synopsis
example

Jump to

Keyboard shortcuts

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