Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CountHandler, _ = disq.RegisterTask(&disq.TaskOptions{
Name: "CountHandler",
Handler: counthandler(),
RetryLimit: 3,
})
create task
View Source
var RBroker1 = NewBroker(Redis, 1000, "disq10")
View Source
var RBroker2 = NewBroker(Redis, 100, "disq9")
View Source
var RBroker3 = NewBroker(Redis, 10, "disq8")
View Source
var RWorker = NewWorker(Redis, []disq.Broker{RBroker1.Broker, RBroker2.Broker, RBroker3.Broker})
View Source
var (
Redis, _ = NewClient()
)
Functions ¶
func WaitSignal ¶
Types ¶
type EndpointError ¶
type EndpointError struct { Err error // contains filtered or unexported fields }
func (*EndpointError) Delay ¶
func (e *EndpointError) Delay() time.Duration
func (*EndpointError) Error ¶
func (e *EndpointError) Error() string
type RedisBroker ¶
type RedisBroker struct { Name string Broker disq.Broker // contains filtered or unexported fields }
func NewBroker ¶
func NewBroker(c *redis.Client, concurency int, name string) *RedisBroker
Create new broker
Click to show internal directories.
Click to hide internal directories.