forked from atlassian/gostatsd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
32 lines (27 loc) · 772 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package gostatsd
// Nanotime is the number of nanoseconds elapsed since January 1, 1970 UTC.
// Get the value with time.Now().UnixNano().
type Nanotime int64
// IP is a v4/v6 IP address.
// We do not use net.IP because it will involve conversion to string and back several times.
type IP string
// UnknownIP is an IP of an unknown source.
const UnknownIP IP = ""
type Wait func()
type TimerSubtypes struct {
Lower bool
LowerPct bool // pct
Upper bool
UpperPct bool // pct
Count bool
CountPct bool // pct
CountPerSecond bool
Mean bool
MeanPct bool // pct
Median bool
StdDev bool
Sum bool
SumPct bool // pct
SumSquares bool
SumSquaresPct bool // pct
}