Documentation ¶
Index ¶
- Constants
- func HighRangeForUnits(low float64, units *string) (float64, float64)
- func LowRangeForUnits(units *string) (float64, float64)
- func NormalizeUnits(units *string) *string
- func NormalizeValueForUnits(value *float64, units *string) *float64
- func RangeRangeForUnits(target float64, units *string) (float64, float64)
- func TargetRangeForUnits(units *string) (float64, float64)
- func Units() []string
- func ValueRangeForUnits(units *string) (float64, float64)
- type Target
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func LowRangeForUnits ¶
func NormalizeUnits ¶
func NormalizeValueForUnits ¶
func TargetRangeForUnits ¶
func ValueRangeForUnits ¶
Types ¶
type Target ¶
type Target struct { High *float64 `json:"high,omitempty" bson:"high,omitempty"` Low *float64 `json:"low,omitempty" bson:"low,omitempty"` Range *float64 `json:"range,omitempty" bson:"range,omitempty"` Target *float64 `json:"target,omitempty" bson:"target,omitempty"` }
func ParseTarget ¶
func ParseTarget(parser data.ObjectParser) *Target
func (*Target) Parse ¶
func (t *Target) Parse(parser data.ObjectParser)
Click to show internal directories.
Click to hide internal directories.