Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentTrafficsFile ¶
Types ¶
type TrafficsReporter ¶
type TrafficsReporter struct {
// contains filtered or unexported fields
}
TrafficsReporter 流量采集器 因性能考虑,统计流量可能会少量丢失,并且流量产生的时间可能不精确
func NewTrafficsReporter ¶
func NewTrafficsReporter(interval time.Duration, filePath string) (*TrafficsReporter, error)
func (*TrafficsReporter) Close ¶
func (c *TrafficsReporter) Close() error
type TrafficsScanner ¶
type TrafficsScanner struct {
// contains filtered or unexported fields
}
func NewTrafficsScanner ¶
func NewTrafficsScanner(filePath string) (*TrafficsScanner, error)
Click to show internal directories.
Click to hide internal directories.