Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteStat ¶
type RouteStat struct {
// contains filtered or unexported fields
}
RouteStat with two modules: Stats and Throttler. Must pass the function NewRouteStat to create
func NewRouteStat ¶
NewRouteStat returns a RouteStat with a single filler go-routine for all throttler which ticks every tbFreq, and record stats which ticks every statFreq.
type SimpleMemStats ¶
type SimpleMemStats struct { Total uint64 `json:"total"` Count uint64 `json:"count"` Mallocs uint64 `json:"mallocs"` // number of mallocs Frees uint64 `json:"frees"` // number of frees HeapInuse uint64 `json:"heap_inuse"` // bytes in non-idle span HeapReleased uint64 `json:"heap_released"` // bytes released to the OS }
type Throttler ¶
type Throttler struct {
// contains filtered or unexported fields
}
func NewThrottler ¶
Click to show internal directories.
Click to hide internal directories.