Source File
point.go
Belonging Package
go.opencensus.io/metric/metricdata
package metricdata
import (
)
Value interface{}
}
type ValueVisitor interface {
VisitFloat64Value(float64)
VisitInt64Value(int64)
VisitDistributionValue(*Distribution)
VisitSummaryValue(*Summary)
}
func ( Point) ( ValueVisitor) {
switch v := .Value.(type) {
case int64:
.VisitInt64Value()
case float64:
.VisitFloat64Value()
case *Distribution:
.VisitDistributionValue()
case *Summary:
.VisitSummaryValue()
default:
panic("unexpected value type")
}
}
Percentiles map[float64]float64
}
![]() |
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. |