worker

package
v0.0.0-...-153da20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 21, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

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
}

func (*JobWorker) Connect

func (w *JobWorker) Connect(projectID string) error

func (JobWorker) Run

func (w JobWorker) Run()

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 WebWorker

type WebWorker struct{}

func (WebWorker) Run

func (w WebWorker) Run()

type WorkerType

type WorkerType string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL