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 552 B

3 years ago
123456789101112131415161718192021
  1. package server
  2. import (
  3. "code.gitlink.org.cn/JCCE/PCM/lan_trans/idl/demo"
  4. "code.gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbecs"
  5. "code.gitlink.org.cn/JCCE/PCM/lan_trans/idl/pbpod"
  6. "context"
  7. )
  8. type Server struct {
  9. // 使用unsafe可以强制让编译器检查是否实现了相关方法
  10. demo.UnsafeDemoServiceServer
  11. pbecs.UnsafeEcsServiceServer
  12. pbpod.UnsafePodServiceServer
  13. }
  14. func (s *Server) Echo(ctx context.Context, req *demo.StringMessage) (*demo.StringMessage, error) {
  15. return &demo.StringMessage{
  16. Value: "Welcome to JCCE PCM",
  17. }, nil
  18. }

PCM is positioned as Software stack over Cloud, aiming to build the standards and ecology of heterogeneous cloud collaboration for JCC in a non intrusive and autonomous peer-to-peer manner.