MCPcopy
hub / github.com/syncthing/syncthing / generateClusterConfig

Method generateClusterConfig

lib/model/model.go:2584–2588  ·  view source on GitHub ↗

generateClusterConfig returns a ClusterConfigMessage that is correct and the set of folder passwords for the given peer device

(device protocol.DeviceID)

Source from the content-addressed store, hash-verified

2582// generateClusterConfig returns a ClusterConfigMessage that is correct and the
2583// set of folder passwords for the given peer device
2584func (m *model) generateClusterConfig(device protocol.DeviceID) (*protocol.ClusterConfig, map[string]string) {
2585 m.mut.RLock()
2586 defer m.mut.RUnlock()
2587 return m.generateClusterConfigRLocked(device)
2588}
2589
2590func (m *model) generateClusterConfigRLocked(device protocol.DeviceID) (*protocol.ClusterConfig, map[string]string) {
2591 message := &protocol.ClusterConfig{}

Calls 1