MCPcopy
hub / github.com/TarsCloud/TarsGo / GetAppConfig

Method GetAppConfig

tars/rconfig.go:94–101  ·  view source on GitHub ↗

GetAppConfig gets the remote config and save it to the path, also return the content.

(filename string)

Source from the content-addressed store, hash-verified

92
93// GetAppConfig gets the remote config and save it to the path, also return the content.
94func (c *RConf) GetAppConfig(filename string) (config string, err error) {
95 info := configf.ConfigInfo{
96 Appname: c.app,
97 Servername: "",
98 Filename: filename,
99 }
100 return c.getConfig(info)
101}
102
103// GetConfig gets the remote config and save it to the path, also return the content.
104func (c *RConf) GetConfig(filename string) (config string, err error) {

Callers 1

AddAppConfigMethod · 0.80

Calls 1

getConfigMethod · 0.95

Tested by

no test coverage detected