Source File
collector.go
Belonging Package
go.opencensus.io/stats/view
package view
import (
)
a *Aggregation
}
func ( *collector) ( string, float64, map[string]interface{}, time.Time) {
, := .signatures[]
if ! {
= .a.newData()
.signatures[] =
}
.addSample(, , )
}
func ( *collector) ( []tag.Key) []*Row {
:= make([]*Row, 0, len(.signatures))
for , := range .signatures {
:= decodeTags([]byte(), )
:= &Row{Tags: , Data: .clone()}
= append(, )
}
return
}
func ( *collector) () {
.signatures = make(map[string]AggregationData)
}
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |