35d15b89 by astaxie

fix #350

1 parent 48ad0202
......@@ -33,7 +33,8 @@ func Register(name string, adapter Config) {
adapters[name] = adapter
}
// config need to be correct JSON as string: {"interval":360}
// adapterNamer is ini/json/xml/yaml
// filename is the config file path
func NewConfig(adapterName, fileaname string) (ConfigContainer, error) {
adapter, ok := adapters[adapterName]
if !ok {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!