Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxIdle = 3 MaxActive = 3 IdleTimeout = 240 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func RegisterTasks ¶
func RegisterTasks(celery *gocelery.CeleryClient, constructors ...func(celery *gocelery.CeleryClient) TaskInterface)
Types ¶
type Task ¶
type Task struct { Client *gocelery.CeleryClient Namespace string Functions map[string]interface{} }
func (*Task) GetNamespace ¶
type TaskInterface ¶
type TaskInterface interface { GetNamespace() string Register() }
Click to show internal directories.
Click to hide internal directories.