diff options
Diffstat (limited to 'lib/xdsconfig')
-rw-r--r-- | lib/xdsconfig/data.go | 3 | ||||
-rw-r--r-- | lib/xdsconfig/fileconfig.go | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/xdsconfig/data.go b/lib/xdsconfig/data.go index b582ec5..ad18d60 100644 --- a/lib/xdsconfig/data.go +++ b/lib/xdsconfig/data.go @@ -35,13 +35,14 @@ type xmlServerData struct { Data ServerData `xml:"server-data"` } +// ServerData Hold server data saved in ServerData file type ServerData struct { ID string `xml:"id"` } var sdMutex = sync.NewMutex() -// ServerIDGet +// ServerIDGet Get Server unique ID func ServerIDGet() (string, error) { var f string var err error diff --git a/lib/xdsconfig/fileconfig.go b/lib/xdsconfig/fileconfig.go index 46afc57..69467b4 100644 --- a/lib/xdsconfig/fileconfig.go +++ b/lib/xdsconfig/fileconfig.go @@ -173,12 +173,12 @@ func configFilenameGet(cfgFile string) (string, error) { return path.Join(usr.HomeDir, ConfigDir, cfgFile), nil } -// FoldersConfigFilenameGet +// FoldersConfigFilenameGet Return the FoldersConfig filename func FoldersConfigFilenameGet() (string, error) { return configFilenameGet(FoldersConfigFilename) } -// ServerDataFilenameGet +// ServerDataFilenameGet Return the ServerData filename func ServerDataFilenameGet() (string, error) { return configFilenameGet(ServerDataFilename) } |