MCPcopy Create free account

hub / github.com/facebook/time / functions

Functions3,016 in github.com/facebook/time

↓ 249 callersMethodClose
()
ptp/sptp/client/connection.go:37
↓ 233 callersMethodUnix
Unix returns true if connected via a unix socket
cmd/ntpcheck/checker/chrony.go:202
↓ 166 callersMethodDuration
Duration converts PTP CorrectionField to time.Duration, ignoring case where correction is too big, and dropping fractions of nanoseconds
ptp/protocol/types.go:170
↓ 141 callersMethodSize
Size returns the size of the firmware file
sa53/firmware/firmware.go:60
↓ 123 callersMethodPrintf
(format string, v ...any)
ntp/chrony/logger.go:21
↓ 113 callersMethodError
Error implements the error interface
phc/adjtime.go:34
↓ 108 callersMethodName
()
calnex/verify/checks/check.go:23
↓ 91 callersMethodRead
(buf []byte)
phc/pps_source.go:87
↓ 90 callersMethodRun
(name string, insecureTLS bool)
calnex/verify/checks/check.go:24
↓ 83 callersMethodSample
Sample function to calculate frequency based on the offset
servo/pi.go:176
↓ 75 callersMethodLen
()
ptp/sptp/stats/stats.go:62
↓ 74 callersMethodUnlock
()
phc/pps_source.go:71
↓ 69 callersMethodError
()
cmd/ntripper/main.go:273
↓ 68 callersMethodBytes
Bytes returns the written data, trimmed to the byte boundary.
rtcm/bits.go:104
↓ 68 callersMethodIsSpike
IsSpike function to check if offset is considered as spike
servo/pi.go:151
↓ 68 callersMethodString
()
ptp/protocol/types.go:119
↓ 60 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/sptp/client/stats_mock_test.go:50
↓ 60 callersMethodError
()
ptp/protocol/management.go:282
↓ 58 callersMethodNanoseconds
Nanoseconds decodes Correction to human-understandable nanoseconds
ptp/protocol/types.go:161
↓ 56 callersFunctionNewSdoIDAndMsgType
NewSdoIDAndMsgType builds new SdoIDAndMsgType from MessageType and flags
ptp/protocol/types.go:75
↓ 55 callersMethodload
load gets the value by the key
ptp/ptp4u/stats/stats.go:179
↓ 51 callersMethodSub
Sub returns the estimated difference between two PHC SYS_OFFSET_PRECISE readings
phc/offset.go:160
↓ 49 callersMethodGet
Get returns an map of counters
fbclock/stats/stats.go:61
↓ 49 callersFunctionNewAPI
NewAPI returns an pointer of API struct with default values.
calnex/api/api.go:573
↓ 45 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
phc/pps_mock_test.go:290
↓ 45 callersMethodTime
()
phc/pps_source.go:81
↓ 44 callersMethodString
String implements fmt.Stringer interface
cmd/ptpcheck/cmd/nic.go:107
↓ 44 callersMethodToFloat
ToFloat does magic to decode float from int32. Code is copied and translated to Go from original C sources.
ntp/chrony/helpers.go:119
↓ 43 callersMethodWriteBits
WriteBits writes n bits (1-32) from the least significant bits of val.
rtcm/bits.go:78
↓ 39 callersMethodCalnexAPI
CalnexAPI returns probe name (lower case)
calnex/api/api.go:460
↓ 39 callersMethodWrite
(p []byte)
ptp/protocol/management_test.go:201
↓ 38 callersMethodReadBits
ReadBits reads n bits (1-32) as an unsigned value.
rtcm/bits.go:31
↓ 37 callersFunctionBytes
Bytes converts any packet to []bytes
ptp/protocol/protocol.go:520
↓ 37 callersMethodset
set modifies a single config value
calnex/config/config.go:69
↓ 34 callersFunctionIPToSockaddr
IPToSockaddr converts IP + port into a socket address Somewhat copy from https://github.com/golang/go/blob/16cd770e0668a410a511680b2ac1412e554bd27b/sr
timestamp/timestamp.go:188
↓ 33 callersMethodSetCounter
(key string, val int64)
fbclock/stats/stats.go:30
↓ 32 callersFunctionNewJSONStats
NewJSONStats returns a new JSONStats
ptp/ptp4u/stats/json.go:37
↓ 32 callersMethodWrite
Write sends raw RTCM data to the caster. In NTRIP v2 chunked mode each call is wrapped in a single HTTP chunk. The dump (if any) always receives the r
ntrip/client.go:202
↓ 31 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/sptp/client/servo_mock_test.go:49
↓ 30 callersMethodErr
()
ptp/linearizability/linearizability.go:31
↓ 29 callersFunctionFromBytes
FromBytes parses []byte into any packet
ptp/protocol/protocol.go:536
↓ 29 callersMethodSetMinMaxCF
SetMinMaxCF atomically sets max CF value observed (assuming all CF values are positive) or min CF (if any CF values are negative) CF values may be neg
ptp/ptp4u/stats/json.go:207
↓ 29 callersMethodactive
()
ptp/sptp/client/backoff.go:41
↓ 28 callersMethodMarshal
Marshal encodes a single record into its wire format (RFC 8915 §4).
ntp/ntske/records.go:81
↓ 28 callersFunctionNewSubscriptionClient
NewSubscriptionClient gets minimal required arguments to create a subscription
ptp/ptp4u/server/subscription.go:65
↓ 27 callersMethodEmpty
Empty timestamp
ptp/protocol/types.go:349
↓ 26 callersMethodFile
()
phc/pps_source.go:84
↓ 26 callersFunctionIPToBytes
IPToBytes converts a net.IP to a [16]uint8 array for use in IPAddr structs. For IPv4, it stores the 4 bytes at the beginning of the array. For IPv6, i
ntp/chrony/helpers.go:224
↓ 25 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/sptp/client/udpconn_mock_test.go:124
↓ 25 callersMethodSeconds
Seconds returns number of seconds as uint64
ptp/protocol/types.go:290
↓ 24 callersMethodWriteToWithTS
(b []byte, addr net.Addr)
ptp/linearizability/linearizability_ptp.go:49
↓ 23 callersMethodCommunicate
Communicate sends the packet to chronyd, parse response into something usable
ntp/chrony/client.go:36
↓ 23 callersMethodWriteSignedBits
WriteSignedBits writes n bits of a signed value in two's complement.
rtcm/bits.go:93
↓ 22 callersFunctionConnFd
ConnFd returns file descriptor of a connection
timestamp/timestamp.go:124
↓ 22 callersMethodReadSignedBits
ReadSignedBits reads n bits as a signed two's complement value.
rtcm/bits.go:47
↓ 21 callersMethodMeanFreq
MeanFreq to return best calculated frequency from filter
servo/pi.go:442
↓ 21 callersFunctionNewMockUDPConnWithTS
NewMockUDPConnWithTS creates a new mock instance.
ptp/sptp/client/udpconn_mock_test.go:117
↓ 21 callersMethodOpen
Open verifies and decrypts ciphertext against ad and nonce. A nonce whose length is wrong for the algorithm is rejected with ErrAEADNonceSize; any aut
ntp/protocol/nts/aead.go:41
↓ 21 callersMethodstore
store saves the value with the key
ptp/ptp4u/stats/stats.go:209
↓ 20 callersMethodAnnounce
Announce returns ptp Announce packet
ptp/ptp4u/server/subscription.go:327
↓ 20 callersFunctionDecodePacket
DecodePacket provides single entry point to try and decode any []bytes to PTPv2 packet. It can be used for easy integration with anything that provide
ptp/protocol/protocol.go:548
↓ 20 callersFunctionNewStats
NewStats created new instance of Stats
fbclock/stats/stats.go:40
↓ 20 callersMethodType
()
ptp/protocol/tlvs.go:27
↓ 19 callersFunctionDefaultConfig
DefaultConfig returns Config initialized with default values
ptp/sptp/client/config.go:142
↓ 19 callersMethodMessageType
()
ptp/protocol/protocol.go:498
↓ 19 callersMethodRun
()
cmd/ntpcheck/checker/runner.go:32
↓ 19 callersMethodScan
Scan reads the next RTCM3 frame from the stream. It returns true if a frame was successfully read, or false on error or EOF. After Scan returns false,
rtcm/scanner.go:59
↓ 19 callersMethodString
String timestamp to string
timestamp/timestamp.go:79
↓ 19 callersFunctionnewDaemonState
(ringSize int)
fbclock/daemon/state.go:40
↓ 18 callersFunctionClockAccuracyFromOffset
ClockAccuracyFromOffset returns PTP Clock Accuracy covering the time.Duration
ptp/protocol/types.go:422
↓ 18 callersMethodFd
()
phc/pps_source.go:88
↓ 18 callersMethodMsgType
MsgType extracts MessageType from SdoIDAndMsgType
ptp/protocol/types.go:70
↓ 18 callersFunctionNewMockStatsServer
NewMockStatsServer creates a new mock instance.
ptp/sptp/client/stats_mock_test.go:43
↓ 18 callersMethodSetGMStats
(stat *gmstats.Stat)
ptp/sptp/client/stats.go:43
↓ 18 callersFunctiondecodePacket
decodePacket decodes bytes to valid response packet. an easy way to test this is to use 'testchrony' tool we have.
ntp/chrony/packet.go:1193
↓ 17 callersFunctionConfigureVerbosity
ConfigureVerbosity configures log verbosity based on parsed flags. Needs to be called by any subcommand.
cmd/ptpcheck/cmd/root.go:46
↓ 17 callersMethodLess
(i, j int)
ptp/sptp/stats/stats.go:63
↓ 17 callersMethoddelay
delay evaluates the latest path delay and applies filter logic It returns false if delay is bad and wasn't used
ptp/sptp/client/measurements.go:156
↓ 17 callersFunctiongetbits
getbits reads n bits at bit offset pos as a two's complement signed value.
rtcm/ephemeris.go:128
↓ 17 callersFunctiongetbitu
getbitu reads n bits (MSB-first) at bit offset pos as an unsigned value.
rtcm/ephemeris.go:119
↓ 16 callersFunctionConfigureVerbosity
ConfigureVerbosity configures log verbosity based on parsed flags. Needs to be called by any subcommand.
cmd/ntpcheck/cmd/root.go:42
↓ 16 callersFunctionDefaultPiServoCfg
DefaultPiServoCfg to create default pi servo config
servo/pi.go:483
↓ 16 callersFunctionDefaultServoConfig
DefaultServoConfig generates default servo struct
servo/servo.go:59
↓ 16 callersFunctionFromFile
FromFile returns a *Device corresponding to an *os.File
phc/device.go:35
↓ 16 callersFunctionNewPiServo
NewPiServo to create servo structure
servo/pi.go:450
↓ 16 callersMethodSetGmsAvailable
(gmsAvailable int)
ptp/sptp/client/stats.go:34
↓ 16 callersMethodSetSequence
(uint16)
ptp/protocol/protocol.go:499
↓ 16 callersMethodWrite
Write new element to a ring buffer
ptp/c4u/clock/clock.go:58
↓ 16 callersMethodadd
(sample float64)
ptp/sptp/client/window.go:48
↓ 16 callersFunctiongpsObs
(sv uint8, pr, cp float64, dop float32, cno uint8)
rtcm/msm_encode_test.go:126
↓ 16 callersMethodinc
()
ptp/sptp/client/backoff.go:58
↓ 15 callersMethodAddSFRBX
AddSFRBX consumes a UBX-RXM-SFRBX payload (the UBX message payload, without the UBX header/checksum). When a payload completes GPS LNAV subframes 1-3
rtcm/ephemeris.go:56
↓ 15 callersFunctionDetectPeaks
DetectPeaks finds the 4 reflective peaks (OA, OB, OC, OD) in the OTDR trace. OA is found via local prominence detection (it is a strong reflection fr
caliper/peaks.go:92
↓ 15 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
ptp/sptp/client/clock_mock_test.go:49
↓ 15 callersMethodSetGmsTotal
(gmsTotal int)
ptp/sptp/client/stats.go:33
↓ 15 callersFunctionbuildFrame
buildFrame constructs a valid RTCM3 frame with the given payload.
rtcm/rtcm_test.go:26
↓ 15 callersMethodpushDataPoint
(data *DataPoint)
fbclock/daemon/state.go:72
↓ 14 callersMethodConnFd
()
ptp/sptp/client/connection.go:45
↓ 14 callersMethodEvalAndValidate
EvalAndValidate makes sure config is valid and evaluates expressions for further use.
fbclock/daemon/config.go:48
↓ 14 callersFunctionNewMockClock
NewMockClock creates a new mock instance.
ptp/sptp/client/clock_mock_test.go:42
next →1–100 of 3,016, ranked by callers