DataPoint is what we store in DataPoint ring buffer
| 54 | var errCorrectness = errors.New("sanity checking data point error") |
| 55 | var errNoLeapData = errors.New("no leap second data to build a TAI anchor from") |
| 56 | |
| 57 | // defaultTargets is a list of targets if no available |
| 58 | var defaultTargets = []string{"::1", "::2", "::3"} |
| 59 | |
| 60 | // DataPoint is what we store in DataPoint ring buffer |
| 61 | type DataPoint struct { |
| 62 | // IngressTimeNS represents ingress time in NanoSeconds |
| 63 | IngressTimeNS int64 |
| 64 | // MasterOffsetNS represents master offset in NanoSeconds |
| 65 | MasterOffsetNS float64 |
| 66 | // PathDelayNS represents path delay in NanoSeconds |
| 67 | PathDelayNS float64 |
| 68 | // FreqAdjustmentPPB represents freq adjustment in parts per billion |
| 69 | FreqAdjustmentPPB float64 |
| 70 | // ClockAccuracyNS represents clock accurary in nanoseconds |
| 71 | ClockAccuracyNS float64 |
| 72 | // ServoState represents the servo state from the PTP client |
nothing calls this directly
no outgoing calls
no test coverage detected