Documentation ¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- func RegisterNotificationsServiceServer(s grpc.ServiceRegistrar, srv NotificationsServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetAge() int32
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetPhoneNumber() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetToken() string
- func (x *LoginResponse) GetUserid() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type NotificationsServiceClient
- type NotificationsServiceServer
- type NotifyEmailRequest
- func (*NotifyEmailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyEmailRequest) GetMessage() string
- func (x *NotifyEmailRequest) GetTo() []string
- func (x *NotifyEmailRequest) GetTopic() string
- func (*NotifyEmailRequest) ProtoMessage()
- func (x *NotifyEmailRequest) ProtoReflect() protoreflect.Message
- func (x *NotifyEmailRequest) Reset()
- func (x *NotifyEmailRequest) String() string
- type NotifyEmailResponse
- func (*NotifyEmailResponse) Descriptor() ([]byte, []int)deprecated
- func (x *NotifyEmailResponse) GetMessage() string
- func (*NotifyEmailResponse) ProtoMessage()
- func (x *NotifyEmailResponse) ProtoReflect() protoreflect.Message
- func (x *NotifyEmailResponse) Reset()
- func (x *NotifyEmailResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetName() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetPhoneNumber() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetMessage() string
- func (x *RegisterResponse) GetStatus() int32
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
- type UnimplementedNotificationsServiceServer
- type UnsafeAuthServiceServer
- type UnsafeNotificationsServiceServer
- type VerifyRequest
- type VerifyResponse
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "Verify", Handler: _AuthService_Verify_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/auth-service.proto", }
AuthService_ServiceDesc is the grpc.ServiceDesc for AuthService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_protos_auth_service_proto protoreflect.FileDescriptor
var File_protos_notifications_service_proto protoreflect.FileDescriptor
var NotificationsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "NotificationsService", HandlerType: (*NotificationsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "NotifyByEmail", Handler: _NotificationsService_NotifyByEmail_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "protos/notifications-service.proto", }
NotificationsService_ServiceDesc is the grpc.ServiceDesc for NotificationsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
func RegisterNotificationsServiceServer ¶
func RegisterNotificationsServiceServer(s grpc.ServiceRegistrar, srv NotificationsServiceServer)
Types ¶
type AuthServiceClient ¶
type AuthServiceClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) Verify(ctx context.Context, in *VerifyRequest, opts ...grpc.CallOption) (*VerifyResponse, error) }
AuthServiceClient is the client API for AuthService 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 NewAuthServiceClient ¶
func NewAuthServiceClient(cc grpc.ClientConnInterface) AuthServiceClient
type AuthServiceServer ¶
type AuthServiceServer interface { Login(context.Context, *LoginRequest) (*LoginResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error) // contains filtered or unexported methods }
AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` PhoneNumber string `protobuf:"bytes,3,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` Age int32 `protobuf:"varint,4,opt,name=age,proto3" json:"age,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetAge ¶
func (x *LoginRequest) GetAge() int32
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) GetPhoneNumber ¶
func (x *LoginRequest) GetPhoneNumber() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Userid string `protobuf:"bytes,2,opt,name=userid,proto3" json:"userid,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) GetUserid ¶
func (x *LoginResponse) GetUserid() string
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
type NotificationsServiceClient ¶
type NotificationsServiceClient interface {
NotifyByEmail(ctx context.Context, in *NotifyEmailRequest, opts ...grpc.CallOption) (*NotifyEmailResponse, error)
}
NotificationsServiceClient is the client API for NotificationsService 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 NewNotificationsServiceClient ¶
func NewNotificationsServiceClient(cc grpc.ClientConnInterface) NotificationsServiceClient
type NotificationsServiceServer ¶
type NotificationsServiceServer interface { NotifyByEmail(context.Context, *NotifyEmailRequest) (*NotifyEmailResponse, error) // contains filtered or unexported methods }
NotificationsServiceServer is the server API for NotificationsService service. All implementations must embed UnimplementedNotificationsServiceServer for forward compatibility
type NotifyEmailRequest ¶
type NotifyEmailRequest struct { To []string `protobuf:"bytes,1,rep,name=to,proto3" json:"to,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Topic string `protobuf:"bytes,3,opt,name=topic,proto3" json:"topic,omitempty"` // contains filtered or unexported fields }
func (*NotifyEmailRequest) Descriptor
deprecated
func (*NotifyEmailRequest) Descriptor() ([]byte, []int)
Deprecated: Use NotifyEmailRequest.ProtoReflect.Descriptor instead.
func (*NotifyEmailRequest) GetMessage ¶
func (x *NotifyEmailRequest) GetMessage() string
func (*NotifyEmailRequest) GetTo ¶
func (x *NotifyEmailRequest) GetTo() []string
func (*NotifyEmailRequest) GetTopic ¶
func (x *NotifyEmailRequest) GetTopic() string
func (*NotifyEmailRequest) ProtoMessage ¶
func (*NotifyEmailRequest) ProtoMessage()
func (*NotifyEmailRequest) ProtoReflect ¶
func (x *NotifyEmailRequest) ProtoReflect() protoreflect.Message
func (*NotifyEmailRequest) Reset ¶
func (x *NotifyEmailRequest) Reset()
func (*NotifyEmailRequest) String ¶
func (x *NotifyEmailRequest) String() string
type NotifyEmailResponse ¶
type NotifyEmailResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*NotifyEmailResponse) Descriptor
deprecated
func (*NotifyEmailResponse) Descriptor() ([]byte, []int)
Deprecated: Use NotifyEmailResponse.ProtoReflect.Descriptor instead.
func (*NotifyEmailResponse) GetMessage ¶
func (x *NotifyEmailResponse) GetMessage() string
func (*NotifyEmailResponse) ProtoMessage ¶
func (*NotifyEmailResponse) ProtoMessage()
func (*NotifyEmailResponse) ProtoReflect ¶
func (x *NotifyEmailResponse) ProtoReflect() protoreflect.Message
func (*NotifyEmailResponse) Reset ¶
func (x *NotifyEmailResponse) Reset()
func (*NotifyEmailResponse) String ¶
func (x *NotifyEmailResponse) String() string
type RegisterRequest ¶
type RegisterRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` PhoneNumber string `protobuf:"bytes,4,opt,name=phoneNumber,proto3" json:"phoneNumber,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetName ¶
func (x *RegisterRequest) GetName() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetPhoneNumber ¶
func (x *RegisterRequest) GetPhoneNumber() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetMessage ¶
func (x *RegisterResponse) GetMessage() string
func (*RegisterResponse) GetStatus ¶
func (x *RegisterResponse) GetStatus() int32
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
type UnimplementedAuthServiceServer ¶
type UnimplementedAuthServiceServer struct { }
UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) Verify ¶
func (UnimplementedAuthServiceServer) Verify(context.Context, *VerifyRequest) (*VerifyResponse, error)
type UnimplementedNotificationsServiceServer ¶
type UnimplementedNotificationsServiceServer struct { }
UnimplementedNotificationsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNotificationsServiceServer) NotifyByEmail ¶
func (UnimplementedNotificationsServiceServer) NotifyByEmail(context.Context, *NotifyEmailRequest) (*NotifyEmailResponse, error)
type UnsafeAuthServiceServer ¶
type UnsafeAuthServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServiceServer will result in compilation errors.
type UnsafeNotificationsServiceServer ¶
type UnsafeNotificationsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNotificationsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotificationsServiceServer will result in compilation errors.
type VerifyRequest ¶
type VerifyRequest struct {
// contains filtered or unexported fields
}
func (*VerifyRequest) Descriptor
deprecated
func (*VerifyRequest) Descriptor() ([]byte, []int)
Deprecated: Use VerifyRequest.ProtoReflect.Descriptor instead.
func (*VerifyRequest) ProtoMessage ¶
func (*VerifyRequest) ProtoMessage()
func (*VerifyRequest) ProtoReflect ¶
func (x *VerifyRequest) ProtoReflect() protoreflect.Message
func (*VerifyRequest) Reset ¶
func (x *VerifyRequest) Reset()
func (*VerifyRequest) String ¶
func (x *VerifyRequest) String() string
type VerifyResponse ¶
type VerifyResponse struct {
// contains filtered or unexported fields
}
func (*VerifyResponse) Descriptor
deprecated
func (*VerifyResponse) Descriptor() ([]byte, []int)
Deprecated: Use VerifyResponse.ProtoReflect.Descriptor instead.
func (*VerifyResponse) ProtoMessage ¶
func (*VerifyResponse) ProtoMessage()
func (*VerifyResponse) ProtoReflect ¶
func (x *VerifyResponse) ProtoReflect() protoreflect.Message
func (*VerifyResponse) Reset ¶
func (x *VerifyResponse) Reset()
func (*VerifyResponse) String ¶
func (x *VerifyResponse) String() string