dtm/dtmsvr/api_grpc.go
2021-08-10 09:54:14 +08:00

19 lines
414 B
Go

package dtmsvr
import (
"context"
pb "github.com/yedf/dtm/dtmgrpc"
"google.golang.org/protobuf/types/known/emptypb"
)
// dtmServer is used to implement helloworld.GreeterServer.
type dtmServer struct {
pb.UnimplementedDtmServer
}
func (s *dtmServer) Submit(ctx context.Context, in *pb.DtmRequest) (*emptypb.Empty, error) {
svcSubmit(TransFromDtmRequest(in), in.WaitResult)
return &emptypb.Empty{}, nil
}