data

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const Binary = "badpod"

Variables

View Source
var (
	Version   string
	GitCommit string
	BuildTime string
)

Functions

func GetBandwidth

func GetBandwidth() int64

func GetCPUUse

func GetCPUUse() float64

func GetData

func GetData(r *http.Request) map[string]string

func GetDelay

func GetDelay() int64

func GetErrorRate

func GetErrorRate() float64

func GetLiveness

func GetLiveness() bool

func GetReadiness

func GetReadiness() bool

func RenderBuildData

func RenderBuildData() string

For logging

func RenderSessionData

func RenderSessionData() string

For logging

func SetBandwidth

func SetBandwidth(b int64)

func SetCPUUse

func SetCPUUse(c float64)

func SetDelay

func SetDelay(d int64)

TODO make methods

func SetErrorRate

func SetErrorRate(e float64)

func SetLiveness

func SetLiveness(l bool)

func SetReadiness

func SetReadiness(r bool)

Types

type Settings

type Settings struct {
	// contains filtered or unexported fields
}

func NewSettings

func NewSettings() *Settings

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳