package rpc import ( "gitlink.org.cn/cloudream/jcs-pub/client/internal/cluster" "gitlink.org.cn/cloudream/jcs-pub/client/internal/http" "gitlink.org.cn/cloudream/jcs-pub/client/internal/publock" clirpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/client" ) type Service struct { pubLock *publock.PubLock cluster *cluster.Cluster http *http.Server } func NewService(pubLock *publock.PubLock, cluster *cluster.Cluster, http *http.Server) *Service { return &Service{ pubLock: pubLock, cluster: cluster, http: http, } } var _ clirpc.ClientAPI = (*Service)(nil)