queue

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LoadVersionsAndUpdateServerData = "loadVersionsAndUpdateServerData"
	LoadServersAndUpdateData        = "loadServersAndUpdateData"
	UpdateServerData                = "updateServerData"
	Vacuum                          = "vacuum"
	VacuumServerData                = "vacuumServerData"
	UpdateEnnoblements              = "updateEnnoblements"
	UpdateServerEnnoblements        = "updateServerEnnoblements"
	UpdateHistory                   = "updateHistory"
	UpdateServerHistory             = "updateServerHistory"
	UpdateStats                     = "updateStats"
	UpdateServerStats               = "updateServerStats"
	DeleteNonExistentVillages       = "deleteNonExistentVillages"
	ServerDeleteNonExistentVillages = "serverDeleteNonExistentVillages"
)

Variables

This section is empty.

Functions

func GetTask

func GetTask(taskName string) *taskq.Task

Types

type Config

type Config struct {
	Redis       redis.UniversalClient
	WorkerLimit int
	DB          *pg.DB
}

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

func New

func New(cfg *Config) (*Queue, error)

func (*Queue) Add

func (q *Queue) Add(msg *taskq.Message) error

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Start

func (q *Queue) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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