Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Basic orders from the main service to the modules OrderStartUp = "OrderStartUp" // called during startup procedore, after configuration is readed OrderError = "OrderError" // called to report an error to the module, e.g. when a module is not responding or has an unexpected response OrderInformation = "OrderInformation" // called to request information from the module, e.g. when a module is not responding or has an unexpected response OrderChange = "OrderChange" // called to update the module, e.g. when a module has an update to share, Publish to main OrderShutdown = "OrderShutdown" // called to shutdown the module, e.g. when the main service is shutting down, Publish to main )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderChangePayload ¶ added in v0.4.0
type OrderErrorPayload ¶ added in v0.4.0
type OrderErrorPayload struct {
Message string // error message to report to the module, e.g. when a module is not responding or has an unexpected response
}
type OrderInformationPayload ¶ added in v0.4.0
type OrderInformationPayload struct {
Payload any
}
type OrderShutdownPayload ¶ added in v0.4.1
type OrderShutdownPayload struct {
Reason string // reason for shutdown, e.g. when the main service is shutting down, Publish to main
}
type OrderStartUpPayload ¶
Click to show internal directories.
Click to hide internal directories.