feat: config.
This commit is contained in:
13
remoteconfig/apollo/parser.go
Normal file
13
remoteconfig/apollo/parser.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package apollo
|
||||
|
||||
type jsonExtParser struct{}
|
||||
|
||||
func (parser jsonExtParser) Parse(configContent any) (map[string]any, error) {
|
||||
return map[string]any{"content": configContent}, nil
|
||||
}
|
||||
|
||||
type yamlExtParser struct{}
|
||||
|
||||
func (parser yamlExtParser) Parse(configContent any) (map[string]any, error) {
|
||||
return map[string]any{"content": configContent}, nil
|
||||
}
|
||||
Reference in New Issue
Block a user