You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

server.go 467 B

1234567891011121314151617181920212223242526
  1. package corrpc
  2. import (
  3. "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc"
  4. )
  5. type CoordinatorAPI interface {
  6. HubService
  7. StorageService
  8. }
  9. type Server struct {
  10. UnimplementedCoordinatorServer
  11. *rpc.ServerBase
  12. svrImpl CoordinatorAPI
  13. }
  14. func NewServer(cfg rpc.Config, impl CoordinatorAPI) *Server {
  15. svr := &Server{
  16. svrImpl: impl,
  17. }
  18. svr.ServerBase = rpc.NewServerBase(cfg, svr, &Coordinator_ServiceDesc)
  19. return svr
  20. }
  21. var _ CoordinatorServer = (*Server)(nil)

本项目旨在将云际存储公共基础设施化,使个人及企业可低门槛使用高效的云际存储服务(安装开箱即用云际存储客户端即可,无需关注其他组件的部署),同时支持用户灵活便捷定制云际存储的功能细节。