Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Jobber ¶
type Jobber interface { Push(queue string, args interface{}) error Register(queue string, handler Handler) Start() error }
Jobber background job
type RedisJobber ¶
type RedisJobber struct { Redis *redis.Pool `inject:""` Logger *logging.Logger `inject:""` Timeout int Handlers map[string]Handler }
RedisJobber job by readis store
func (*RedisJobber) Push ¶
func (p *RedisJobber) Push(queue string, args interface{}) error
Push add a job task
func (*RedisJobber) Register ¶
func (p *RedisJobber) Register(queue string, handler Handler)
Register register a job-handler
Click to show internal directories.
Click to hide internal directories.