Documentation ¶
Index ¶
- func Assign(queueName string, prefetchLimit int64, duration time.Duration, f Func, ...)
- func AssignBatch(queueName string, prefetchLimit int64, duration time.Duration, batchSize int64, ...)
- func Bind(conf ...Conf)
- func Publish(name string, payload interface{}) error
- func Purge(queueName string, qt KeyFlag) error
- func Return(queueName string, qt KeyFlag, max int64) error
- func StopAllConsuming() error
- func StopConsuming(queueName string) error
- type AssignFunc
- type BatchConsumerFunc
- type Conf
- type Configuration
- type Deliveries
- type Delivery
- type Func
- type FuncBatch
- type KeyFlag
- type RedisMessageConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignBatch ¶
func StopAllConsuming ¶
func StopAllConsuming() error
func StopConsuming ¶
Types ¶
type AssignFunc ¶
type AssignFunc func() error
type BatchConsumerFunc ¶
type BatchConsumerFunc func(deliveries rmq.Deliveries)
func (BatchConsumerFunc) Consume ¶
func (batchConsumerFunc BatchConsumerFunc) Consume(delivery rmq.Deliveries)
type Conf ¶
type Conf func(*RedisMessageConn)
func CleanerTick ¶
func Repo ¶
func Repo(rp *repo.Repository) Conf
type Configuration ¶
type Configuration struct {
// contains filtered or unexported fields
}
func (*Configuration) CleanerTick ¶
func (c *Configuration) CleanerTick() time.Duration
func (*Configuration) Custom ¶
func (c *Configuration) Custom() interface{}
func (*Configuration) Mongo ¶
func (c *Configuration) Mongo() *mongo.MgoClient
func (*Configuration) Redis ¶
func (c *Configuration) Redis() *redis.RdClient
func (*Configuration) Repo ¶
func (c *Configuration) Repo() *repo.Repository
type Deliveries ¶
type Deliveries = rmq.Deliveries
type Func ¶
type Func func(Delivery, *Configuration)
type FuncBatch ¶
type FuncBatch func(Deliveries, *Configuration)
type RedisMessageConn ¶
type RedisMessageConn struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.