f-21: code: add interface name in config
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
6a5a646eaa
commit
066b90dff4
2 changed files with 7 additions and 1 deletions
|
|
@ -1,2 +1,7 @@
|
||||||
database:
|
database:
|
||||||
path: "/var/lib/two/data/"
|
path: "/var/lib/two/data/"
|
||||||
|
|
||||||
|
interfaces:
|
||||||
|
vms: br-000000
|
||||||
|
internet: br-000000
|
||||||
|
admin: br-000000
|
||||||
|
|
@ -20,6 +20,7 @@ type Config struct {
|
||||||
Count int `mapstructure:"count"`
|
Count int `mapstructure:"count"`
|
||||||
BufferSize int `mapstructure:"buffer_size"`
|
BufferSize int `mapstructure:"buffer_size"`
|
||||||
} `mapstructure:"worker"`
|
} `mapstructure:"worker"`
|
||||||
|
Interfaces map[string]string `mapstructure:"interfaces"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func LoadConfig(path string) (*Config, error) {
|
func LoadConfig(path string) (*Config, error) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue