Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
Slack int64 `form:"slack" schema:"slack"` // Used by P controller
SumOfSlack int64 `form:"sumOfSlack" schema:"sumOfSlack"` // Used by I controller
PreviousSlack int64 `form:"previousSlack"schema:"previousSlack"` // Used by D controller
ProfiledExecutionTime int64 `form:"profiledExecutionTime" schema:"profiledExecutionTime"`
}
Struct send as part of sequence controller Requests to watchers.
type Request ¶
type Request struct {
ID uint64 `form:"id" binding:"omitempty" schema:"-"`
Function string `form:"function" binding:"required" schema:"function"`
Metrics *Metrics `form:"metrics" binding:"required" schema:"metrics"`
}
Initial Request struct made by sequence controller and passed to watcher supreme.
type ResetRequest ¶
type ResetRequest struct {
ID uint64 `form:"id" schema:"id"`
Function string `form:"function" binding:"required" schema:"function"`
}
ResetRequest carries the id given to sequence controller by the watcher supreme.
func NewResetRequest ¶
func NewResetRequest(id uint64, function string) *ResetRequest
Returns a new Reset Request.
Click to show internal directories.
Click to hide internal directories.