Adds a very simple way to group up folders to help with organising from the GUI. Signed-off-by: Ben Norcombe <bennorcombe@pm.me>
This commit is contained in:
@@ -36,6 +36,7 @@ type DeviceConfiguration struct {
|
||||
Untrusted bool `json:"untrusted" xml:"untrusted"`
|
||||
RemoteGUIPort int `json:"remoteGUIPort" xml:"remoteGUIPort"`
|
||||
RawNumConnections int `json:"numConnections" xml:"numConnections"`
|
||||
Group string `json:"group" xml:"group,attr,omitempty"`
|
||||
}
|
||||
|
||||
func (cfg DeviceConfiguration) Copy() DeviceConfiguration {
|
||||
|
||||
@@ -54,6 +54,7 @@ type FolderConfiguration struct {
|
||||
Path string `json:"path" xml:"path,attr"`
|
||||
Type FolderType `json:"type" xml:"type,attr"`
|
||||
Devices []FolderDeviceConfiguration `json:"devices" xml:"device"`
|
||||
Group string `json:"group" xml:"group,attr,omitempty" restart:"false"`
|
||||
RescanIntervalS int `json:"rescanIntervalS" xml:"rescanIntervalS,attr" default:"3600"`
|
||||
FSWatcherEnabled bool `json:"fsWatcherEnabled" xml:"fsWatcherEnabled,attr" default:"true"`
|
||||
FSWatcherDelayS float64 `json:"fsWatcherDelayS" xml:"fsWatcherDelayS,attr" default:"10"`
|
||||
|
||||
Reference in New Issue
Block a user