Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)
- type ConfirmCodeRequest
- func (*ConfirmCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfirmCodeRequest) GetCode() string
- func (x *ConfirmCodeRequest) GetId() string
- func (*ConfirmCodeRequest) ProtoMessage()
- func (x *ConfirmCodeRequest) ProtoReflect() protoreflect.Message
- func (x *ConfirmCodeRequest) Reset()
- func (x *ConfirmCodeRequest) String() string
- type ConfirmCodeResponse
- type EmailServiceClient
- type EmailServiceServer
- type SendCodeRequest
- type SendCodeResponse
- type UnimplementedEmailServiceServer
- type UnsafeEmailServiceServer
Constants ¶
const ( EmailService_SendCode_FullMethodName = "/email_service.EmailService/SendCode" EmailService_ConfirmCode_FullMethodName = "/email_service.EmailService/ConfirmCode" )
Variables ¶
var EmailService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "email_service.EmailService", HandlerType: (*EmailServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SendCode", Handler: _EmailService_SendCode_Handler, }, { MethodName: "ConfirmCode", Handler: _EmailService_ConfirmCode_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/email-service/email-service.proto", }
EmailService_ServiceDesc is the grpc.ServiceDesc for EmailService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_email_service_email_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEmailServiceServer ¶
func RegisterEmailServiceServer(s grpc.ServiceRegistrar, srv EmailServiceServer)
Types ¶
type ConfirmCodeRequest ¶
type ConfirmCodeRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // contains filtered or unexported fields }
func (*ConfirmCodeRequest) Descriptor
deprecated
func (*ConfirmCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmCodeRequest.ProtoReflect.Descriptor instead.
func (*ConfirmCodeRequest) GetCode ¶
func (x *ConfirmCodeRequest) GetCode() string
func (*ConfirmCodeRequest) GetId ¶
func (x *ConfirmCodeRequest) GetId() string
func (*ConfirmCodeRequest) ProtoMessage ¶
func (*ConfirmCodeRequest) ProtoMessage()
func (*ConfirmCodeRequest) ProtoReflect ¶
func (x *ConfirmCodeRequest) ProtoReflect() protoreflect.Message
func (*ConfirmCodeRequest) Reset ¶
func (x *ConfirmCodeRequest) Reset()
func (*ConfirmCodeRequest) String ¶
func (x *ConfirmCodeRequest) String() string
type ConfirmCodeResponse ¶
type ConfirmCodeResponse struct {
// contains filtered or unexported fields
}
func (*ConfirmCodeResponse) Descriptor
deprecated
func (*ConfirmCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmCodeResponse.ProtoReflect.Descriptor instead.
func (*ConfirmCodeResponse) ProtoMessage ¶
func (*ConfirmCodeResponse) ProtoMessage()
func (*ConfirmCodeResponse) ProtoReflect ¶
func (x *ConfirmCodeResponse) ProtoReflect() protoreflect.Message
func (*ConfirmCodeResponse) Reset ¶
func (x *ConfirmCodeResponse) Reset()
func (*ConfirmCodeResponse) String ¶
func (x *ConfirmCodeResponse) String() string
type EmailServiceClient ¶
type EmailServiceClient interface { SendCode(ctx context.Context, in *SendCodeRequest, opts ...grpc.CallOption) (*SendCodeResponse, error) ConfirmCode(ctx context.Context, in *ConfirmCodeRequest, opts ...grpc.CallOption) (*ConfirmCodeResponse, error) }
EmailServiceClient is the client API for EmailService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewEmailServiceClient ¶
func NewEmailServiceClient(cc grpc.ClientConnInterface) EmailServiceClient
type EmailServiceServer ¶
type EmailServiceServer interface { SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error) ConfirmCode(context.Context, *ConfirmCodeRequest) (*ConfirmCodeResponse, error) // contains filtered or unexported methods }
EmailServiceServer is the server API for EmailService service. All implementations must embed UnimplementedEmailServiceServer for forward compatibility
type SendCodeRequest ¶
type SendCodeRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*SendCodeRequest) Descriptor
deprecated
func (*SendCodeRequest) Descriptor() ([]byte, []int)
Deprecated: Use SendCodeRequest.ProtoReflect.Descriptor instead.
func (*SendCodeRequest) GetEmail ¶
func (x *SendCodeRequest) GetEmail() string
func (*SendCodeRequest) ProtoMessage ¶
func (*SendCodeRequest) ProtoMessage()
func (*SendCodeRequest) ProtoReflect ¶
func (x *SendCodeRequest) ProtoReflect() protoreflect.Message
func (*SendCodeRequest) Reset ¶
func (x *SendCodeRequest) Reset()
func (*SendCodeRequest) String ¶
func (x *SendCodeRequest) String() string
type SendCodeResponse ¶
type SendCodeResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*SendCodeResponse) Descriptor
deprecated
func (*SendCodeResponse) Descriptor() ([]byte, []int)
Deprecated: Use SendCodeResponse.ProtoReflect.Descriptor instead.
func (*SendCodeResponse) GetId ¶
func (x *SendCodeResponse) GetId() string
func (*SendCodeResponse) ProtoMessage ¶
func (*SendCodeResponse) ProtoMessage()
func (*SendCodeResponse) ProtoReflect ¶
func (x *SendCodeResponse) ProtoReflect() protoreflect.Message
func (*SendCodeResponse) Reset ¶
func (x *SendCodeResponse) Reset()
func (*SendCodeResponse) String ¶
func (x *SendCodeResponse) String() string
type UnimplementedEmailServiceServer ¶
type UnimplementedEmailServiceServer struct { }
UnimplementedEmailServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedEmailServiceServer) ConfirmCode ¶
func (UnimplementedEmailServiceServer) ConfirmCode(context.Context, *ConfirmCodeRequest) (*ConfirmCodeResponse, error)
func (UnimplementedEmailServiceServer) SendCode ¶
func (UnimplementedEmailServiceServer) SendCode(context.Context, *SendCodeRequest) (*SendCodeResponse, error)
type UnsafeEmailServiceServer ¶
type UnsafeEmailServiceServer interface {
// contains filtered or unexported methods
}
UnsafeEmailServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EmailServiceServer will result in compilation errors.
Directories ¶
Path | Synopsis |
---|---|
Package auth_service is a reverse proxy.
|
Package auth_service is a reverse proxy. |
Package clients_service is a reverse proxy.
|
Package clients_service is a reverse proxy. |
Package crypto_service is a reverse proxy.
|
Package crypto_service is a reverse proxy. |
Package invoices_service is a reverse proxy.
|
Package invoices_service is a reverse proxy. |