Documentation ¶
Index ¶
- Constants
- Variables
- func ExchangeNameToType(et string) (uint8, error)
- func LoadAllExchanges(db *bolt.DB, deleteChan chan *Exchange) (map[string]*Exchange, error)
- type Exchange
- func NewExchange(name string, extype uint8, durable bool, autodelete bool, internal bool, ...) *Exchange
- func NewFromDisk(db *bolt.DB, key string, deleteChan chan *Exchange) (ex *Exchange, err error)
- func NewFromDiskBoltTx(bucket *bolt.Bucket, key []byte, deleteChan chan *Exchange) (ex *Exchange, err error)
- func NewFromExchangeState(exState *gen.ExchangeState, deleteChan chan *Exchange) *Exchange
- func NewFromMethod(method *amqp.ExchangeDeclare, system bool, exchangeDeleter chan *Exchange) (*Exchange, *amqp.AMQPError)
- func (exchange *Exchange) AddBinding(b *binding.Binding, connId int64) error
- func (exchange *Exchange) BindingsForQueue(queueName string) []*binding.Binding
- func (exchange *Exchange) Close()
- func (exchange *Exchange) Depersist(db *bolt.DB) error
- func (ex1 *Exchange) EquivalentExchanges(ex2 *Exchange) bool
- func (exchange *Exchange) IsTopic() bool
- func (exchange *Exchange) MarshalJSON() ([]byte, error)
- func (exchange *Exchange) Persist(db *bolt.DB) error
- func (exchange *Exchange) QueuesForPublish(msg *amqp.Message) (map[string]bool, *amqp.AMQPError)
- func (exchange *Exchange) RemoveBinding(binding *binding.Binding) error
- func (exchange *Exchange) RemoveBindingsForQueue(queueName string)
- type ExchangeStateFactory
Constants ¶
View Source
const ( EX_TYPE_DIRECT uint8 = 1 EX_TYPE_FANOUT uint8 = 2 EX_TYPE_TOPIC uint8 = 3 EX_TYPE_HEADERS uint8 = 4 )
Variables ¶
View Source
var EXCHANGES_BUCKET_NAME = []byte("exchanges")
Functions ¶
func ExchangeNameToType ¶
Types ¶
type Exchange ¶
type Exchange struct { gen.ExchangeState Closed bool // contains filtered or unexported fields }
func NewExchange ¶
func NewFromDisk ¶
func NewFromDiskBoltTx ¶
func NewFromExchangeState ¶
func NewFromExchangeState(exState *gen.ExchangeState, deleteChan chan *Exchange) *Exchange
func NewFromMethod ¶
func (*Exchange) AddBinding ¶
func (*Exchange) BindingsForQueue ¶
func (*Exchange) EquivalentExchanges ¶
func (*Exchange) MarshalJSON ¶
func (*Exchange) QueuesForPublish ¶
func (*Exchange) RemoveBinding ¶
func (*Exchange) RemoveBindingsForQueue ¶
type ExchangeStateFactory ¶
type ExchangeStateFactory struct{}
func (*ExchangeStateFactory) New ¶
func (esf *ExchangeStateFactory) New() proto.Unmarshaler
Click to show internal directories.
Click to hide internal directories.