Base

package
v0.0.0-...-69b6420 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Work

func Work(conn *amqp.Connection, conf WorkerConf, errCh chan error)
Work 接受三个参数. Exchange的配置信息从config.json中获取.分别是
  exchangeName
  exchangeType
  exchangeOptions.durable  -> default: true

Queue Default Config

durable -> default: true

Types

type WorkerConf

type WorkerConf struct {
	QName     string              // Queue Name
	RoutingKs []string            // RoutingKey for binding
	AutoAck   bool                // AutoAck
	Handler   func(amqp.Delivery) // handler for message
	Desc      string              // Description for cli.
}

Jump to

Keyboard shortcuts

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