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

Method GetAssociationInfo

ntp/control/packet.go:363–372  ·  view source on GitHub ↗

GetAssociationInfo returns parsed normalized variables if present

()

Source from the content-addressed store, hash-verified

361
362// GetAssociationInfo returns parsed normalized variables if present
363func (n NTPControlMsg) GetAssociationInfo() (map[string]string, error) {
364 if n.GetOperation() != OpReadVariables {
365 return nil, fmt.Errorf("no variables supported for operation=%d", n.GetOperation())
366 }
367 data, err := NormalizeData(n.Data)
368 if err != nil {
369 return nil, err
370 }
371 return data, nil
372}

Callers 5

TestGetAssociationInfoFunction · 0.95
NewPeerFromNTPFunction · 0.80
RunMethod · 0.80

Calls 2

NormalizeDataFunction · 0.85
GetOperationMethod · 0.80

Tested by 2

TestGetAssociationInfoFunction · 0.76