3 // EventRegisterArgs Parameters (json format) of /events/register command
4 type EventRegisterArgs struct {
5 Name string `json:"name"`
6 ProjectID string `json:"filterProjectID"`
9 // EventUnRegisterArgs Parameters of /events/unregister command
10 type EventUnRegisterArgs struct {
11 Name string `json:"name"`
15 // EventMsg Message send
16 type EventMsg struct {
17 Time string `json:"time"`
18 Type string `json:"type"`
19 Folder FolderConfig `json:"folder"`
22 // EventEvent Event send in WS when an internal event (eg. Syncthing event is received)
24 // EventTypePrefix Used as event prefix
25 EventTypePrefix = "event:" // following by event type
27 // Supported Events type
28 EVTAll = EventTypePrefix + "all"
29 EVTFolderChange = EventTypePrefix + "folder-change" // type EventMsg with Data type xsapiv1.???
30 EVTFolderStateChange = EventTypePrefix + "folder-state-change" // type EventMsg with Data type xsapiv1.???