File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
package metrics
4
4
5
- type Description struct {}
5
+ type Description struct {
6
+ Name string
7
+ Description string
8
+ Kind ValueKind
9
+ Cumulative bool
10
+ }
6
11
7
12
func All () []Description {
8
13
return nil
9
14
}
10
15
11
- type Float64Histogram struct {}
16
+ type Float64Histogram struct {
17
+ Counts []uint64
18
+ Buckets []float64
19
+ }
12
20
13
- type Sample struct {}
21
+ type Sample struct {
22
+ Name string
23
+ Value Value
24
+ }
14
25
15
26
func Read (m []Sample ) {}
16
27
@@ -23,10 +34,17 @@ func (v Value) Float64Histogram() *Float64Histogram {
23
34
return nil
24
35
}
25
36
func (v Value ) Kind () ValueKind {
26
- return ValueKind {}
37
+ return KindBad
27
38
}
28
39
func (v Value ) Uint64 () uint64 {
29
40
return 0
30
41
}
31
42
32
- type ValueKind struct {}
43
+ type ValueKind int
44
+
45
+ const (
46
+ KindBad ValueKind = iota
47
+ KindUint64
48
+ KindFloat64
49
+ KindFloat64Histogram
50
+ )
You can’t perform that action at this time.
0 commit comments