Versions in this module Expand all Collapse all v0 v0.10.9 Nov 19, 2020 v0.10.2-rc1 Nov 22, 2019 v0.9.3 Jun 12, 2019 Changes in this version + const UnitEB + const UnitEBPerS + const UnitEiB + const UnitEiBPerS + const UnitGB + const UnitGBPerS + const UnitGHz + const UnitGW + const UnitGiB + const UnitGiBPerS + const UnitKB + const UnitKBPerS + const UnitKiB + const UnitKiBPerS + const UnitMB + const UnitMBPerS + const UnitMHz + const UnitMW + const UnitMiB + const UnitMiBPerS + const UnitPB + const UnitPBPerS + const UnitPiB + const UnitPiBPerS + const UnitTB + const UnitTBPerS + const UnitTiB + const UnitTiBPerS + const UnitW + const UnitkB + const UnitkBPerS + const UnitkW + const UnitmW + var UnitIndex = make(map[string]*Unit, numUnits) + func ConvertProtoAttributeMap(in map[string]*proto.Attribute) map[string]*Attribute + func ConvertStructAttributeMap(in map[string]*Attribute) map[string]*proto.Attribute + func ConvertStructStatObject(in *StatObject) *proto.StatObject + func ConvertStructStatValue(in *StatValue) *proto.StatValue + func ConvertStructsAttribute(in *Attribute) *proto.Attribute + func CopyMapStringAttribute(in map[string]*Attribute) map[string]*Attribute + func Pow(a, b int64) int64 + func ReattachConfigToGoPlugin(rc *ReattachConfig) (*plugin.ReattachConfig, error) + type Attribute struct + Bool *bool + Float *float64 + Int *int64 + String *string + Unit string + func ConvertProtoAttribute(in *proto.Attribute) *Attribute + func NewBoolAttribute(b bool) *Attribute + func NewFloatAttribute(f float64, unit string) *Attribute + func NewIntAttribute(i int64, unit string) *Attribute + func NewStringAttribute(s string) *Attribute + func ParseAttribute(input string) *Attribute + func (a *Attribute) Comparable(b *Attribute) bool + func (a *Attribute) Compare(b *Attribute) (int, bool) + func (a *Attribute) Copy() *Attribute + func (a *Attribute) GetBool() (value bool, ok bool) + func (a *Attribute) GetFloat() (value float64, ok bool) + func (a *Attribute) GetInt() (value int64, ok bool) + func (a *Attribute) GetString() (value string, ok bool) + func (a *Attribute) GoString() string + func (a *Attribute) Validate() error + type BaseUnit uint16 + const UnitByte + const UnitByteRate + const UnitHertz + const UnitScalar + const UnitWatt + type ReattachConfig struct + Addr string + Network string + Pid int + Protocol string + func ReattachConfigFromGoPlugin(plug *plugin.ReattachConfig) *ReattachConfig + type StatObject struct + Attributes map[string]*StatValue + Nested map[string]*StatObject + func ConvertProtoStatObject(in *proto.StatObject) *StatObject + type StatValue struct + BoolVal *bool + Desc string + FloatDenominatorVal *float64 + FloatNumeratorVal *float64 + IntDenominatorVal *int64 + IntNumeratorVal *int64 + StringVal *string + Unit string + func ConvertProtoStatValue(in *proto.StatValue) *StatValue + type Unit struct + Base BaseUnit + InverseMultiplier bool + Multiplier int64 + Name string + func (u *Unit) Comparable(o *Unit) bool