request

package module
v0.0.0-...-cc2015d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2022 License: MIT Imports: 0 Imported by: 2

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.

func NewRequest

func NewRequest(f string, m *Metrics) *Request

Returns a new Request.

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.

Jump to

Keyboard shortcuts

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