Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatCounter ¶
type StatCounter struct { RXBandwidth uint64 TXBandwidth uint64 // contains filtered or unexported fields }
func (*StatCounter) Start ¶
func (s *StatCounter) Start() error
func (*StatCounter) Stop ¶
func (s *StatCounter) Stop()
type StatCounterManager ¶
type StatCounterManager struct { TotalRXMB float64 TotalTXMB float64 TotalRXBandwidth uint64 TotalTXBandwidth uint64 // contains filtered or unexported fields }
func NewStatCounterManager ¶
func NewStatCounterManager(db *gorm.DB) *StatCounterManager
func (*StatCounterManager) Add ¶
func (s *StatCounterManager) Add(iface string) error
func (*StatCounterManager) Get ¶
func (s *StatCounterManager) Get(iface string) *StatCounter
func (*StatCounterManager) GetAll ¶
func (s *StatCounterManager) GetAll() []*StatCounter
func (*StatCounterManager) Remove ¶
func (s *StatCounterManager) Remove(iface string) error
func (*StatCounterManager) Start ¶
func (s *StatCounterManager) Start()
func (*StatCounterManager) Stop ¶
func (s *StatCounterManager) Stop()
Click to show internal directories.
Click to hide internal directories.