|
123456789101112 |
- package rpc
-
- import (
- "context"
-
- "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
- clirpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/client"
- )
-
- func (svc *Service) GetClusterMasterInfo(ctx context.Context, msg *clirpc.GetClusterMasterInfo) (*clirpc.GetClusterMasterInfoResp, *rpc.CodeError) {
- return &clirpc.GetClusterMasterInfoResp{Name: svc.cluster.Name()}, nil
- }
|