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.

scfserver.go 894 B

1234567891011121314151617181920212223242526272829303132333435
  1. // Code generated by goctl. DO NOT EDIT.
  2. // Source: pcm-scf.proto
  3. package server
  4. import (
  5. "context"
  6. "PCM/adaptor/PCM-FC/PCM-SCF/internal/logic"
  7. "PCM/adaptor/PCM-FC/PCM-SCF/internal/svc"
  8. "PCM/adaptor/PCM-FC/PCM-SCF/scf"
  9. )
  10. type ScfServer struct {
  11. svcCtx *svc.ServiceContext
  12. scf.UnimplementedScfServer
  13. }
  14. func NewScfServer(svcCtx *svc.ServiceContext) *ScfServer {
  15. return &ScfServer{
  16. svcCtx: svcCtx,
  17. }
  18. }
  19. // ListFunctions 查询腾讯云云函数列表
  20. func (s *ScfServer) ListFunctions(ctx context.Context, in *scf.ListFunctionsReq) (*scf.ListFunctionsResp, error) {
  21. l := logic.NewListFunctionsLogic(ctx, s.svcCtx)
  22. return l.ListFunctions(in)
  23. }
  24. // GetFunctions 查询腾讯云云函数详情
  25. func (s *ScfServer) GetFunctions(ctx context.Context, in *scf.GetFunctionsReq) (*scf.GetFunctionsResp, error) {
  26. l := logic.NewGetFunctionsLogic(ctx, s.svcCtx)
  27. return l.GetFunctions(in)
  28. }

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.