Documentation ¶
Index ¶
- Constants
- type AdditionalService
- type AdditionalServiceModel
- type Anomaly
- type CreateWorkDTO
- type NotifyAnomalyService
- func (n *NotifyAnomalyService) DeleteServiceFromDatabase() error
- func (n *NotifyAnomalyService) GetService() AdditionalServiceModel
- func (n *NotifyAnomalyService) GetServiceId() string
- func (n *NotifyAnomalyService) GetServiceType() ServiceType
- func (n *NotifyAnomalyService) SaveServiceToDatabase() error
- func (n *NotifyAnomalyService) StartService(router *gin.Engine) error
- func (n *NotifyAnomalyService) StopService() error
- type NotifyAnomalyServiceData
- type ServiceType
- type Work
- type WorkDTO
- type WorkEvent
Constants ¶
View Source
const NOTIFY_ANOMALY_SERVICE = "NOTIFY_ANOMALY_SERVICE"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdditionalService ¶
type AdditionalService interface { GetService() AdditionalServiceModel GetServiceId() string GetServiceType() ServiceType SaveServiceToDatabase() error DeleteServiceFromDatabase() error StartService(router *gin.Engine) error StopService() error }
func GetNotifyAnomalyServiceFromDatabase ¶
func GetNotifyAnomalyServiceFromDatabase(serviceId string, eventHandler eventhandler.EventHandler) (AdditionalService, error)
type AdditionalServiceModel ¶
type AdditionalServiceModel struct { ServiceDefinition serviceModels.ServiceDefinition SystemDefinition serviceModels.SystemDefinition Interfaces []string Metadata map[string]string HasExternalHost bool }
type CreateWorkDTO ¶
type NotifyAnomalyService ¶
type NotifyAnomalyService struct { NotifyAnomalyServiceData EventService eventhandler.EventService OrchestrationConnection orchestrator.OrchestratorConnection }
func NewNotifyAnomalyService ¶
func NewNotifyAnomalyService( anomaly Anomaly, systemDefinition servicemodels.SystemDefinition, eventService eventhandler.EventService, serviceRegistryAddress string, serviceRegistryPort int, certificateId string, truststorePath string, ) (*NotifyAnomalyService, error)
func (*NotifyAnomalyService) DeleteServiceFromDatabase ¶
func (n *NotifyAnomalyService) DeleteServiceFromDatabase() error
func (*NotifyAnomalyService) GetService ¶
func (n *NotifyAnomalyService) GetService() AdditionalServiceModel
func (*NotifyAnomalyService) GetServiceId ¶
func (n *NotifyAnomalyService) GetServiceId() string
func (*NotifyAnomalyService) GetServiceType ¶
func (n *NotifyAnomalyService) GetServiceType() ServiceType
func (*NotifyAnomalyService) SaveServiceToDatabase ¶
func (n *NotifyAnomalyService) SaveServiceToDatabase() error
func (*NotifyAnomalyService) StartService ¶
func (n *NotifyAnomalyService) StartService(router *gin.Engine) error
func (*NotifyAnomalyService) StopService ¶
func (n *NotifyAnomalyService) StopService() error
type NotifyAnomalyServiceData ¶
type NotifyAnomalyServiceData struct { ServiceId string `bson:"serviceId"` Anomaly Anomaly `bson:"anomaly"` SystemDefinition servicemodels.SystemDefinition `bson:"systemDefinition"` ServiceRegistryAddress string `bson:"serviceRegistryAddress"` ServiceRegistryPort int `bson:"serviceRegistryPort"` CertificateId string `bson:"certificateId"` TruststorePath string `bson:"truststorePath"` }
type ServiceType ¶
type ServiceType string
type WorkEvent ¶
type WorkEvent struct { eventhandlertypes.EventType Work }
func (*WorkEvent) GetEventData ¶
func (*WorkEvent) GetEventType ¶
func (w *WorkEvent) GetEventType() eventhandlertypes.EventType
Click to show internal directories.
Click to hide internal directories.