| 37 | const APIKey = "592A47BC-A7DF-4C2F-89E0-A80B3E5094EE" |
| 38 | |
| 39 | type Process struct { |
| 40 | // Set at initialization |
| 41 | addr string |
| 42 | |
| 43 | // Set by eventLoop() |
| 44 | eventMut sync.Mutex |
| 45 | id protocol.DeviceID |
| 46 | folders []string |
| 47 | startComplete chan struct{} |
| 48 | stopped chan struct{} |
| 49 | stopErr error |
| 50 | sequence map[string]map[string]int64 // Folder ID => Device ID => Sequence |
| 51 | done map[string]bool // Folder ID => 100% |
| 52 | |
| 53 | cmd *exec.Cmd |
| 54 | logfd *os.File |
| 55 | } |
| 56 | |
| 57 | // NewProcess returns a new Process talking to Syncthing at the specified address. |
| 58 | // Example: NewProcess("127.0.0.1:8082") |
nothing calls this directly
no outgoing calls
no test coverage detected