mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: reload cluster node settings from settings file #169
This commit is contained in:
parent
29f1b7db89
commit
e0366f949f
13 changed files with 110 additions and 34 deletions
|
@ -7,3 +7,13 @@ type Cluster struct {
|
|||
var ClusterSettings = Cluster{
|
||||
Node: []string{},
|
||||
}
|
||||
|
||||
func ReloadCluster() (err error) {
|
||||
err = load()
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return mapTo("cluster", &ClusterSettings)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue