Documentation ¶
Overview ¶
Package utils implement utilities functions
Index ¶
- func ComputeTimings(start *types.TimingsStart, timings *types.Timings)
- func GetRandomInteger(max int) int
- func HttpGet(url string) (*http.Response, error)
- func HttpMachineGet(url string) (*http.Response, error)
- func HttpMachinePostJSON(url string, json string) (*http.Response, error)
- func HttpPostJSON(url string, json string) (*http.Response, error)
- func LoadsBelowSpecificLoad(slots []uint, threshold uint) []uint
- func MaxOfArrayFloat(array []float64) (float64, int)
- func MaxOfArrayUint(array []uint) (uint, int)
- func MinOfArrayUint(array []uint) (uint, int)
- func SendJSONResponse(w *http.ResponseWriter, code int, body string)
- func SendJSONResponseByte(w *http.ResponseWriter, code int, body []byte)
- func SlotsAboveSpecificFreeSlots(slots []uint, threshold uint) []uint
- type ErrorHttpCannotCreateRequest
- type Semaphore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeTimings ¶
func ComputeTimings(start *types.TimingsStart, timings *types.Timings)
func GetRandomInteger ¶
func HttpMachineGet ¶
HttpMachineGet performs and http get setting as user agent Machine
func HttpMachinePostJSON ¶
func LoadsBelowSpecificLoad ¶
func MaxOfArrayFloat ¶
func MaxOfArrayUint ¶
func MinOfArrayUint ¶
func SendJSONResponse ¶
func SendJSONResponse(w *http.ResponseWriter, code int, body string)
func SendJSONResponseByte ¶
func SendJSONResponseByte(w *http.ResponseWriter, code int, body []byte)
Types ¶
type ErrorHttpCannotCreateRequest ¶
type ErrorHttpCannotCreateRequest struct{}
func (ErrorHttpCannotCreateRequest) Error ¶
func (e ErrorHttpCannotCreateRequest) Error() string
Click to show internal directories.
Click to hide internal directories.