(path capture.Path)
| 734 | } |
| 735 | |
| 736 | func pathString(path capture.Path) string { |
| 737 | switch path { |
| 738 | case capture.FromLocal: |
| 739 | return "Local" |
| 740 | case capture.FromPeer: |
| 741 | return "Peer" |
| 742 | case capture.SynthesizedToLocal: |
| 743 | return "SynthesizedToLocal" |
| 744 | case capture.SynthesizedToPeer: |
| 745 | return "SynthesizedToPeer" |
| 746 | case capture.PathDisco: |
| 747 | return "Disco" |
| 748 | default: |
| 749 | return "<<UNKNOWN>>" |
| 750 | } |
| 751 | } |