workhandler

package
v0.0.0-...-31acf2f Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignWorkerDTO

type AssignWorkerDTO struct {
	WorkId   string `json:"workId"`
	WorkerId string `json:"workerId"`
}

type ExternalWorkHandler

type ExternalWorkHandler struct {
	TakeWorkServiceDefinition string
	OrchestrationConnection   orchestrator.OrchestratorConnection
	SystemDefinition          orchestratormodels.SystemDefinition
	CertificateInfo           orchestratormodels.CertificateInfo
}

func (*ExternalWorkHandler) AssignWorker

func (w *ExternalWorkHandler) AssignWorker(workId string, workerId string) (*Work, error)

type Work

type Work struct {
	WorkId    string    `json:"workId"`
	ProductId string    `json:"productId"`
	EventType string    `json:"eventType"`
	Address   string    `json:"address"`
	StartTime time.Time `json:"startTime"`
}

type WorkHandler

type WorkHandler interface {
	AssignWorker(workId string, workerId string) (*Work, error)
}

type WorkHandlerType

type WorkHandlerType string
const EXTERNAL_WORK_HANDLER WorkHandlerType = "EXTERNAL_WORK_HANDLER"

Jump to

Keyboard shortcuts

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