MCPcopy Create free account
hub / github.com/facebook/time / CurrentDataSet

Method CurrentDataSet

ptp/protocol/management_client.go:107–118  ·  view source on GitHub ↗

CurrentDataSet sends CURRENT_DATA_SET request and returns response

()

Source from the content-addressed store, hash-verified

105
106// CurrentDataSet sends CURRENT_DATA_SET request and returns response
107func (c *MgmtClient) CurrentDataSet() (*CurrentDataSetTLV, error) {
108 req := CurrentDataSetRequest()
109 p, err := c.Communicate(req)
110 if err != nil {
111 return nil, err
112 }
113 tlv, ok := p.TLV.(*CurrentDataSetTLV)
114 if !ok {
115 return nil, fmt.Errorf("got unexpected management TLV %T, wanted %T", p.TLV, tlv)
116 }
117 return tlv, nil
118}
119
120// ClockAccuracy sends CLOCK_ACCURACY request and returns response
121func (c *MgmtClient) ClockAccuracy() (*ClockAccuracyTLV, error) {

Callers 5

FetchStatsMethod · 0.95
RunPTP4LFunction · 0.80
sourcesRunPTP4lFunction · 0.80

Calls 2

CommunicateMethod · 0.95
CurrentDataSetRequestFunction · 0.85

Tested by 2