worker

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RUNNING  = domain.RUNNING
	STOPPING = domain.STOPPING
	OFFLINE  = domain.OFFLINE
)

Variables

Functions

func InitProducer

func InitProducer(producer event.TaskWorkerEventProducer)

func InitWorkerDAO

func InitWorkerDAO(db *mongox.Mongo, producer event.TaskWorkerEventProducer) dao.WorkerDAO

Types

type Execute

type Execute = domain.Execute

type Handler

type Handler = web.Handler

type Module

type Module struct {
	Svc Service

	Hdl *Handler
	// contains filtered or unexported fields
}

func InitModule

func InitModule(q mq.MQ, db *mongox.Mongo, etcdClient *clientv3.Client) (*Module, error)

type Service

type Service = service.Service

Directories

Path Synopsis
internal
web

Jump to

Keyboard shortcuts

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