Documentation ¶
Index ¶
- type Bucket
- type StatisticSet
- type Statistics
- func (s *Statistics) Add(name string, labelName string, labelValue string, duration float64)
- func (s *Statistics) AddStatistics(s2 *Statistics)
- func (s *Statistics) ReadGob(resp *http.Response) error
- func (s *Statistics) Write(writer *http.ResponseWriter)
- func (s *Statistics) WriteGob(writer *http.ResponseWriter) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatisticSet ¶
type Statistics ¶
type Statistics struct { Names map[string]StatisticSet Buckets []Bucket // contains filtered or unexported fields }
func New ¶
func New() *Statistics
func NewWithBuckets ¶
func NewWithBuckets(buckets []float64) *Statistics
func (*Statistics) Add ¶
func (s *Statistics) Add(name string, labelName string, labelValue string, duration float64)
func (*Statistics) AddStatistics ¶ added in v1.0.1
func (s *Statistics) AddStatistics(s2 *Statistics)
func (*Statistics) ReadGob ¶ added in v1.0.2
func (s *Statistics) ReadGob(resp *http.Response) error
func (*Statistics) Write ¶
func (s *Statistics) Write(writer *http.ResponseWriter)
func (*Statistics) WriteGob ¶
func (s *Statistics) WriteGob(writer *http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.