forked from JointCloud/pcm-coordinator
30 lines
643 B
Go
30 lines
643 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: pcm-scf.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"PCM/adaptor/PCM-FC/PCM-SCF/internal/logic"
|
|
"PCM/adaptor/PCM-FC/PCM-SCF/internal/svc"
|
|
"PCM/adaptor/PCM-FC/PCM-SCF/scf"
|
|
)
|
|
|
|
type ScfServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
scf.UnimplementedScfServer
|
|
}
|
|
|
|
func NewScfServer(svcCtx *svc.ServiceContext) *ScfServer {
|
|
return &ScfServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
// 查询腾讯云云函数列表
|
|
func (s *ScfServer) ListFunctions(ctx context.Context, in *scf.ListFunctionsReq) (*scf.ListFunctionsResp, error) {
|
|
l := logic.NewListFunctionsLogic(ctx, s.svcCtx)
|
|
return l.ListFunctions(in)
|
|
}
|