Path: blob/main/components/public-api/go/v1/v1connect/verification.proxy.connect.go
2501 views
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-proxy-gen. DO NOT EDIT.56package v1connect78import (9context "context"10connect_go "github.com/bufbuild/connect-go"11v1 "github.com/gitpod-io/gitpod/components/public-api/go/v1"12)1314var _ VerificationServiceHandler = (*ProxyVerificationServiceHandler)(nil)1516type ProxyVerificationServiceHandler struct {17Client v1.VerificationServiceClient18UnimplementedVerificationServiceHandler19}2021func (s *ProxyVerificationServiceHandler) SendPhoneNumberVerificationToken(ctx context.Context, req *connect_go.Request[v1.SendPhoneNumberVerificationTokenRequest]) (*connect_go.Response[v1.SendPhoneNumberVerificationTokenResponse], error) {22resp, err := s.Client.SendPhoneNumberVerificationToken(ctx, req.Msg)23if err != nil {24// TODO(milan): Convert to correct status code25return nil, err26}2728return connect_go.NewResponse(resp), nil29}3031func (s *ProxyVerificationServiceHandler) VerifyPhoneNumberVerificationToken(ctx context.Context, req *connect_go.Request[v1.VerifyPhoneNumberVerificationTokenRequest]) (*connect_go.Response[v1.VerifyPhoneNumberVerificationTokenResponse], error) {32resp, err := s.Client.VerifyPhoneNumberVerificationToken(ctx, req.Msg)33if err != nil {34// TODO(milan): Convert to correct status code35return nil, err36}3738return connect_go.NewResponse(resp), nil39}404142