Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrorParamsEmpty liberr.CodeError = iota + liberr.MinPkgNetwork ErrorNetCounter ErrorNetInterface ErrorNetNotFound ErrorNetReload )
Variables ¶
This section is empty.
Functions ¶
func ListStatsSort ¶
func ListStatsSort() []int
Types ¶
type Bytes ¶
Bytes represents a byte size using the github.com/nabbar/golib/size package This provides consistent byte size handling with binary units (KB=1024, MB=1024², etc.)
func (Bytes) FormatUnitFloat ¶
FormatUnitFloat formats the bytes with a floating point precision and appropriate unit suffix (KB, MB, GB, etc.) If precision < 1, it delegates to FormatUnitInt() The format includes padding to ensure consistent alignment
func (Bytes) FormatUnitInt ¶
FormatUnitInt formats the bytes as an integer with appropriate unit suffix (KB, MB, GB, etc.) The format includes padding to ensure 4-character alignment for the numeric part
type Interface ¶
type Interface interface {
ReLoad(ctx context.Context) errors.Error
GetIndex() int
GetName() string
GetHardwareAddr() string
GetMTU() int
GetAddr() []string
IsUp() bool
HasPhysical() bool
GetFlags() []string
GetStatIn() map[Stats]Number
GetStatOut() map[Stats]Number
}
func GetAllInterfaces ¶
type Stats ¶
type Stats uint8
func (Stats) FormatLabelUnit ¶
func (Stats) FormatLabelUnitPadded ¶
func (Stats) FormatUnit ¶
func (Stats) FormatUnitInt ¶
Click to show internal directories.
Click to hide internal directories.