transport

package
v0.0.0-...-b05cad6 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPTransport

type AMQPTransport struct {
	context.Context
	URL          string
	ExchangeName string
	ExchangeKind string
	// contains filtered or unexported fields
}

func (*AMQPTransport) Close

func (t *AMQPTransport) Close() error

func (*AMQPTransport) Consume

func (t *AMQPTransport) Consume(name string) (<-chan *message.Request, error)

func (*AMQPTransport) Init

func (t *AMQPTransport) Init(ctx context.Context) error

func (AMQPTransport) Name

func (AMQPTransport) Name() string

func (*AMQPTransport) Reply

func (t *AMQPTransport) Reply(req *message.Request, resp message.Response) error

func (*AMQPTransport) Setup

func (t *AMQPTransport) Setup() error

func (*AMQPTransport) Tomb

func (t *AMQPTransport) Tomb() *tomb.Tomb

type Driver

type Driver interface {
	Init(context.Context) error
	Name() string
	Tomb() *tomb.Tomb
	Setup() error
	Close() error
	Consume(string) (<-chan *message.Request, error)
	Reply(*message.Request, message.Response) error
}

func NewAMQPTransport

func NewAMQPTransport(url string) Driver

Jump to

Keyboard shortcuts

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