summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-15 00:52:09 +0300
committerGitHub <[email protected]>2021-01-15 00:52:09 +0300
commit83e510d734815968a998fa8e4c14ac0900b9c485 (patch)
tree50dc6e22db7ff51b0fcf3cce0a45b7b739e1f300 /tests/plugins
parent7542ae2d4c392290766405d31996378378aad975 (diff)
parentd4a067d1fdc4911cb5467620da981fca3dc4cc08 (diff)
Merge pull request #476 from spiral/fix/use_mapstructure_instead_yaml_tagsv2.0.0-beta7
fix(yaml): Use mapstructure structure tags instead of yaml
Diffstat (limited to 'tests/plugins')
-rwxr-xr-xtests/plugins/config/plugin1.go40
1 files changed, 20 insertions, 20 deletions
diff --git a/tests/plugins/config/plugin1.go b/tests/plugins/config/plugin1.go
index a6c06aec..c77e7aa7 100755
--- a/tests/plugins/config/plugin1.go
+++ b/tests/plugins/config/plugin1.go
@@ -9,31 +9,31 @@ import (
type AllConfig struct {
RPC struct {
- Listen string `yaml:"listen"`
- } `yaml:"rpc"`
+ Listen string `mapstructure:"listen"`
+ } `mapstructure:"rpc"`
Reload struct {
- Enabled bool `yaml:"enabled"`
- Interval string `yaml:"interval"`
- Patterns []string `yaml:"patterns"`
+ Enabled bool `mapstructure:"enabled"`
+ Interval string `mapstructure:"interval"`
+ Patterns []string `mapstructure:"patterns"`
Services struct {
HTTP struct {
- Recursive bool `yaml:"recursive"`
- Ignore []string `yaml:"ignore"`
- Patterns []string `yaml:"patterns"`
- Dirs []string `yaml:"dirs"`
- } `yaml:"http"`
+ Recursive bool `mapstructure:"recursive"`
+ Ignore []string `mapstructure:"ignore"`
+ Patterns []string `mapstructure:"patterns"`
+ Dirs []string `mapstructure:"dirs"`
+ } `mapstructure:"http"`
Jobs struct {
- Recursive bool `yaml:"recursive"`
- Ignore []string `yaml:"ignore"`
- Dirs []string `yaml:"dirs"`
- } `yaml:"jobs"`
+ Recursive bool `mapstructure:"recursive"`
+ Ignore []string `mapstructure:"ignore"`
+ Dirs []string `mapstructure:"dirs"`
+ } `mapstructure:"jobs"`
RPC struct {
- Recursive bool `yaml:"recursive"`
- Patterns []string `yaml:"patterns"`
- Dirs []string `yaml:"dirs"`
- } `yaml:"rpc"`
- } `yaml:"services"`
- } `yaml:"reload"`
+ Recursive bool `mapstructure:"recursive"`
+ Patterns []string `mapstructure:"patterns"`
+ Dirs []string `mapstructure:"dirs"`
+ } `mapstructure:"rpc"`
+ } `mapstructure:"services"`
+ } `mapstructure:"reload"`
}
// ReloadConfig is a Reload configuration point.