dashboard/services/unis/rpcclient.go

18 lines
306 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.String(), req, out)
}
return out, nil
}