Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Basic inquiries from the main service to the modules InquiryInformation = "InquiryInformation" // called to request information from the system InquiryRender = "InquiryRender" // called to render the module )
View Source
const ( Modules = iota Module )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InquiryRenderPayload ¶
type InquiryRenderPayload struct {
PositionX int // Position X
PositionY int // Position Y
Format string // Format choosen, e.g. raw, H264, H265, Jpeg
Channel string // IPC, PubSub, REST
FPS int // FPS choosen for the video stream, e.g. 30, 60, must be bigger than 0
Time time.Duration // Duration; FPS * Time = Animation length; optional zero value means until ringbuffer closes
}
type ModuleInformation ¶
type ModuleInformation struct {
ID string // ID of the module
Name string // Name of the module
Ready bool // Is the module ready to receive orders
Changes []string // List of changes the module can receive
Heartbeat time.Duration // Duration between each heartbeat, for debugging and logging purposes
LastHeartbeat time.Time // Last time the module sent a heartbeat, for debugging and logging purposes
}
type ModulesPayload ¶
type ModulesPayload struct {
Modules []ModuleInformation // Information about the active modules
}
Click to show internal directories.
Click to hide internal directories.