Documentation ¶
Index ¶
- Constants
- Variables
- type AggregatedStats
- func (agg *AggregatedStats) Aggregate(stats *Stats)
- func (agg AggregatedStats) Flush(seconds uint)
- func (agg AggregatedStats) Len() int
- func (agg AggregatedStats) Less(i, j int) bool
- func (agg *AggregatedStats) Results(name string) *Results
- func (agg AggregatedStats) Start()
- func (agg AggregatedStats) Stop()
- func (agg AggregatedStats) String() string
- func (agg AggregatedStats) Swap(i, j int)
- type Results
- type Stats
- func (stats *Stats) AddNow(bytes uint)
- func (stats *Stats) AddPacket(t time.Time)
- func (stats *Stats) AddPacketNow()
- func (stats *Stats) AddPackets(t time.Time, num uint)
- func (stats *Stats) AddPacketsNow(num uint)
- func (stats *Stats) Start()
- func (stats *Stats) Stop()
- func (stats *Stats) String() string
Constants ¶
View Source
const (
LongDelay = 3 * time.Second
)
Variables ¶
View Source
var (
IncomingPacketChanBuffer = 50
)
Functions ¶
This section is empty.
Types ¶
type AggregatedStats ¶
type AggregatedStats []namedResults
func (*AggregatedStats) Aggregate ¶
func (agg *AggregatedStats) Aggregate(stats *Stats)
func (AggregatedStats) Flush ¶
func (agg AggregatedStats) Flush(seconds uint)
func (AggregatedStats) Len ¶
func (agg AggregatedStats) Len() int
func (AggregatedStats) Less ¶
func (agg AggregatedStats) Less(i, j int) bool
func (*AggregatedStats) Results ¶
func (agg *AggregatedStats) Results(name string) *Results
func (AggregatedStats) Start ¶
func (agg AggregatedStats) Start()
func (AggregatedStats) Stop ¶
func (agg AggregatedStats) Stop()
func (AggregatedStats) String ¶
func (agg AggregatedStats) String() string
func (AggregatedStats) Swap ¶
func (agg AggregatedStats) Swap(i, j int)
type Results ¶
type Results struct {
// contains filtered or unexported fields
}
func NewResults ¶
func NewResults() *Results
func (*Results) BytesPerSecond ¶
func (*Results) PacketsPerSecond ¶
type Stats ¶
func (*Stats) AddPacketNow ¶
func (stats *Stats) AddPacketNow()
func (*Stats) AddPacketsNow ¶
Click to show internal directories.
Click to hide internal directories.