func (l LinkCheckResult) Export() keybase1.LinkCheckResult { ret := keybase1.LinkCheckResult{ ProofId: l.position, ProofResult: ExportProofError(l.err), SnoozedResult: ExportProofError(l.snoozedErr), TorWarning: l.torWarning, } if l.cached != nil { ret.Cached = l.cached.Export() } bt := false if l.diff != nil { ret.Diff = ExportTrackDiff(l.diff) if l.diff.BreaksTracking() { bt = true } } if l.remoteDiff != nil { ret.RemoteDiff = ExportTrackDiff(l.remoteDiff) if l.remoteDiff.BreaksTracking() { bt = true } } if l.hint != nil { ret.Hint = l.hint.Export() } ret.TmpTrackExpireTime = keybase1.ToTime(l.tmpTrackExpireTime) ret.BreaksTracking = bt return ret }
func (l LinkCheckResult) Export() keybase1.LinkCheckResult { ret := keybase1.LinkCheckResult{ ProofId: l.position, ProofResult: ExportProofError(l.err), } if l.cached != nil { ret.Cached = l.cached.Export() } if l.diff != nil { ret.Diff = ExportTrackDiff(l.diff) } if l.remoteDiff != nil { ret.RemoteDiff = ExportTrackDiff(l.remoteDiff) } if l.hint != nil { ret.Hint = l.hint.Export() } return ret }