18 lines
307 B
Go
18 lines
307 B
Go
package unis
|
|
|
|
import (
|
|
"dashboard/models"
|
|
"fmt"
|
|
)
|
|
|
|
func GetConfig(req models.UnisRpcRequest) (*models.UnisRpcResponse, error) {
|
|
out := &models.UnisRpcResponse{}
|
|
|
|
for key, value := range rpcMapClients {
|
|
fmt.Println(key)
|
|
value.Call(models.UnisStationConfig.Methord(), req, out)
|
|
}
|
|
|
|
return out, nil
|
|
}
|