Map returns the members as a map, e.g. used in api to serialize as JSON.
()
| 863 | |
| 864 | // Map returns the members as a map, e.g. used in api to serialize as JSON. |
| 865 | func (comp *FolderCompletion) Map() map[string]interface{} { |
| 866 | return map[string]interface{}{ |
| 867 | "completion": comp.CompletionPct, |
| 868 | "globalBytes": comp.GlobalBytes, |
| 869 | "needBytes": comp.NeedBytes, |
| 870 | "globalItems": comp.GlobalItems, |
| 871 | "needItems": comp.NeedItems, |
| 872 | "needDeletes": comp.NeedDeletes, |
| 873 | "sequence": comp.Sequence, |
| 874 | "remoteState": comp.RemoteState, |
| 875 | } |
| 876 | } |
| 877 | |
| 878 | // Completion returns the completion status, in percent with some counters, |
| 879 | // for the given device and folder. The device can be any known device ID |
no outgoing calls
no test coverage detected