eventhandling

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DirectEventHandling

type DirectEventHandling struct {
	WorkerId string
	workhandler.WorkHandler
}

func (*DirectEventHandling) HandleEvent

func (e *DirectEventHandling) HandleEvent(event WorkEvent) error

func (*DirectEventHandling) InitEventHandler

func (e *DirectEventHandling) InitEventHandler() error

type EventHandlingSystem

type EventHandlingSystem interface {
	InitEventHandler() error
	HandleEvent(event WorkEvent) error
}

type EventHandlingSystemType

type EventHandlingSystemType string
const DIRECT_EVENT_HANDLING EventHandlingSystemType = "DIRECT_EVENT_HANDLING"
const USER_INTERACTIVE_EVENT_HANDLING EventHandlingSystemType = "USER_INTERACTIVE_EVENT_HANDLING"

type NotifyExternalEndpointOfWorkTaskDTO

type NotifyExternalEndpointOfWorkTaskDTO struct {
	WorkTaskType        string `json:"workTaskType"`
	TecnicianSystemSlug string `json:"tecnicianSystemSlug"`
	MowerSystemSlug     string `json:"mowerSystemSlug"`
	WorkTaskId          string `json:"workTaskId"`
	TakeWorkUrl         string `json:"takeWorkUrl"`
}

type TakeWorkDTO

type TakeWorkDTO struct {
	WorkId string `json:"workId"`
}

type UserInteractiveEventHandling

type UserInteractiveEventHandling struct {
	WorkerId string
	workhandler.WorkHandler

	Address string
	Port    int

	DomainAddress string
	DomainPort    int

	ExternalEndpointUrl string
}

func (*UserInteractiveEventHandling) HandleEvent

func (e *UserInteractiveEventHandling) HandleEvent(event WorkEvent) error

func (*UserInteractiveEventHandling) InitEventHandler

func (e *UserInteractiveEventHandling) InitEventHandler() error

type WorkEvent

type WorkEvent struct {
	EventType string `json:"eventType"`
	WorkId    string `json:"workId"`
	ProductId string `json:"productId"`
}

type WorkTakenDTO

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

Jump to

Keyboard shortcuts

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