Documentation
¶
Index ¶
Constants ¶
View Source
const WORKER_EMAIL = "email"
View Source
const WORKER_JOB = "job"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IWorker ¶
type IWorker interface {
Run()
}
func GetWorker ¶
func GetWorker(workerType WorkerType) (IWorker, error)
type JobWorker ¶
type JobWorker struct { ProjectID string // contains filtered or unexported fields }
type MailWorker ¶
type MailWorker struct { ProjectID string // contains filtered or unexported fields }
func (*MailWorker) Connect ¶
func (w *MailWorker) Connect(projectID string) error
func (MailWorker) Run ¶
func (w MailWorker) Run()
type WorkerType ¶
type WorkerType string
Click to show internal directories.
Click to hide internal directories.