Documentation ¶
Index ¶
- Constants
- Variables
- func Configure(options map[string]string)
- func Process(queue string, job jobFunc, concurrency int)
- func Quit()
- func Run()
- func Stats(w http.ResponseWriter, req *http.Request)
- func StatsServer(port int)
- type Action
- type Args
- type Fetcher
- type MiddlewareLogging
- type MiddlewareRetry
- type MiddlewareStats
- type Msg
Constants ¶
View Source
const ( DEFAULT_MAX_RETRY = 25 LAYOUT = "2006-01-02 15:04:05 MST" )
View Source
const (
POLL_INTERVAL = 15
)
View Source
const (
RETRY_KEY = "goretry"
)
Variables ¶
View Source
var Config *config
View Source
var Logger = log.New(os.Stdout, "workers: ", log.Ldate|log.Lmicroseconds)
View Source
var Middleware = newMiddleware( &MiddlewareLogging{}, &MiddlewareRetry{}, &MiddlewareStats{}, )
Functions ¶
func StatsServer ¶
func StatsServer(port int)
Types ¶
type MiddlewareLogging ¶
type MiddlewareLogging struct{}
func (*MiddlewareLogging) Call ¶
func (l *MiddlewareLogging) Call(queue string, message *Msg, next func())
type MiddlewareRetry ¶
type MiddlewareRetry struct{}
func (*MiddlewareRetry) Call ¶
func (r *MiddlewareRetry) Call(queue string, message *Msg, next func())
type MiddlewareStats ¶
type MiddlewareStats struct{}
func (*MiddlewareStats) Call ¶
func (l *MiddlewareStats) Call(queue string, message *Msg, next func())
Click to show internal directories.
Click to hide internal directories.