Documentation ¶
Index ¶
- Variables
- func LoadAllQueues(db *bolt.DB, msgStore *msgstore.MessageStore, deleteChan chan *Queue) (map[string]*Queue, error)
- type Queue
- func (q *Queue) ActiveConsumerCount() uint32
- func (q *Queue) Add(qm *amqp.QueueMessage) bool
- func (q *Queue) AddConsumer(c *consumer.Consumer, exclusive bool) (uint16, error)
- func (q *Queue) Close()
- func (q *Queue) ConsumeImmediate(qm *amqp.QueueMessage) bool
- func (q *Queue) Delete(ifUnused bool, ifEmpty bool) (uint32, error)
- func (q *Queue) Depersist(db *bolt.DB) error
- func (q *Queue) DepersistBoltTx(tx *bolt.Tx) error
- func (q1 *Queue) EquivalentQueues(q2 *Queue) bool
- func (q *Queue) GetOne(rhs ...amqp.MessageResourceHolder) (*amqp.QueueMessage, *amqp.Message)
- func (q *Queue) GetOneForced() *amqp.QueueMessage
- func (q *Queue) Len() uint32
- func (q *Queue) LoadFromMsgStore(msgStore *msgstore.MessageStore)
- func (q *Queue) MarshalJSON() ([]byte, error)
- func (q *Queue) MaybeReady() chan bool
- func (q *Queue) Persist(db *bolt.DB) error
- func (q *Queue) Purge() uint32
- func (q *Queue) Readd(queueName string, msg *amqp.QueueMessage)
- func (q *Queue) Start()
- type QueueStateFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var QUEUE_BUCKET_NAME = []byte("queues")
Functions ¶
func LoadAllQueues ¶
Types ¶
type Queue ¶
type Queue struct { gen.QueueState Closed bool ConnId int64 // contains filtered or unexported fields }
func NewFromPersistedState ¶
func NewFromPersistedState(state *gen.QueueState, msgStore *msgstore.MessageStore, deleteChan chan *Queue) *Queue
func (*Queue) ActiveConsumerCount ¶
func (*Queue) AddConsumer ¶
func (*Queue) ConsumeImmediate ¶
func (q *Queue) ConsumeImmediate(qm *amqp.QueueMessage) bool
func (*Queue) EquivalentQueues ¶
func (*Queue) GetOne ¶
func (q *Queue) GetOne(rhs ...amqp.MessageResourceHolder) (*amqp.QueueMessage, *amqp.Message)
func (*Queue) GetOneForced ¶
func (q *Queue) GetOneForced() *amqp.QueueMessage
func (*Queue) LoadFromMsgStore ¶
func (q *Queue) LoadFromMsgStore(msgStore *msgstore.MessageStore)
func (*Queue) MarshalJSON ¶
func (*Queue) MaybeReady ¶
type QueueStateFactory ¶
type QueueStateFactory struct{}
func (*QueueStateFactory) New ¶
func (qsf *QueueStateFactory) New() proto.Unmarshaler
Click to show internal directories.
Click to hide internal directories.