28 lines
426 B
Go
28 lines
426 B
Go
package uniss
|
|
|
|
import (
|
|
"dashboard/models"
|
|
)
|
|
|
|
// Alarm concurrency
|
|
type RpcServerStub struct {
|
|
}
|
|
|
|
func newrpcServerStub() *RpcServerStub {
|
|
res := new(RpcServerStub)
|
|
|
|
return res
|
|
}
|
|
|
|
// func (u *RpcServerStub) Name() string {
|
|
// return u.name
|
|
// }
|
|
|
|
func (u *RpcServerStub) Config(res models.UnisRpcRequest, rsp *models.UnisRpcResponse) error {
|
|
log.Sugar().Info("rpc server get mesage", res)
|
|
|
|
rsp.Id = res.Id
|
|
|
|
return nil
|
|
}
|