|
- package corrpc
-
- import (
- "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
- )
-
- type CoordinatorAPI interface {
- HubService
- StorageService
- }
-
- type Server struct {
- UnimplementedCoordinatorServer
- *rpc.ServerBase
- svrImpl CoordinatorAPI
- }
-
- func NewServer(cfg rpc.Config, impl CoordinatorAPI) *Server {
- svr := &Server{
- svrImpl: impl,
- }
- svr.ServerBase = rpc.NewServerBase(cfg, svr, &Coordinator_ServiceDesc)
- return svr
- }
-
- var _ CoordinatorServer = (*Server)(nil)
|