Documentation ¶
Index ¶
- Variables
- func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
- func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)
- type AuthClient
- type AuthServer
- type CreateRequest
- func (*CreateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRequest) GetEmail() string
- func (x *CreateRequest) GetLogin() string
- func (x *CreateRequest) GetPassword() string
- func (*CreateRequest) ProtoMessage()
- func (x *CreateRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRequest) Reset()
- func (x *CreateRequest) String() string
- type CreateResponse
- type GetByIdRequest
- type GetByIdResponse
- func (*GetByIdResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetByIdResponse) GetEmail() string
- func (x *GetByIdResponse) GetId() int32
- func (x *GetByIdResponse) GetLogin() string
- func (*GetByIdResponse) ProtoMessage()
- func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
- func (x *GetByIdResponse) Reset()
- func (x *GetByIdResponse) String() string
- type HashRequest
- type HashResponse
- type MailPayload
- func (*MailPayload) Descriptor() ([]byte, []int)deprecated
- func (x *MailPayload) GetHTML() string
- func (x *MailPayload) GetReceivers() []string
- func (x *MailPayload) GetSubject() string
- func (*MailPayload) ProtoMessage()
- func (x *MailPayload) ProtoReflect() protoreflect.Message
- func (x *MailPayload) Reset()
- func (x *MailPayload) String() string
- type ResetPasswordRequest
- func (*ResetPasswordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetPasswordRequest) GetEmail() string
- func (*ResetPasswordRequest) ProtoMessage()
- func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
- func (x *ResetPasswordRequest) Reset()
- func (x *ResetPasswordRequest) String() string
- type SignInRequest
- func (*SignInRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignInRequest) GetEmail() string
- func (x *SignInRequest) GetPassword() string
- func (*SignInRequest) ProtoMessage()
- func (x *SignInRequest) ProtoReflect() protoreflect.Message
- func (x *SignInRequest) Reset()
- func (x *SignInRequest) String() string
- type SignInResponse
- func (*SignInResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignInResponse) GetEmail() string
- func (x *SignInResponse) GetLogin() string
- func (x *SignInResponse) GetToken() string
- func (*SignInResponse) ProtoMessage()
- func (x *SignInResponse) ProtoReflect() protoreflect.Message
- func (x *SignInResponse) Reset()
- func (x *SignInResponse) String() string
- type SignUpRequest
- func (*SignUpRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignUpRequest) GetEmail() string
- func (x *SignUpRequest) GetLogin() string
- func (x *SignUpRequest) GetPassword() string
- func (*SignUpRequest) ProtoMessage()
- func (x *SignUpRequest) ProtoReflect() protoreflect.Message
- func (x *SignUpRequest) Reset()
- func (x *SignUpRequest) String() string
- type SignUpResponse
- type UnimplementedAuthServer
- type UnimplementedUsersServer
- func (UnimplementedUsersServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
- func (UnimplementedUsersServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
- func (UnimplementedUsersServer) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error)
- type UnsafeAuthServer
- type UnsafeUsersServer
- type UsersClient
- type UsersServer
Constants ¶
This section is empty.
Variables ¶
var Auth_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.Auth", HandlerType: (*AuthServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignIn", Handler: _Auth_SignIn_Handler, }, { MethodName: "SignUp", Handler: _Auth_SignUp_Handler, }, { MethodName: "GenerateHash", Handler: _Auth_GenerateHash_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/pb/auth.proto", }
Auth_ServiceDesc is the grpc.ServiceDesc for Auth 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_email_proto protoreflect.FileDescriptor
var File_Protos_user_proto protoreflect.FileDescriptor
var File_pkg_pb_auth_proto protoreflect.FileDescriptor
var Users_ServiceDesc = grpc.ServiceDesc{ ServiceName: "user.Users", HandlerType: (*UsersServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _Users_Create_Handler, }, { MethodName: "GetById", Handler: _Users_GetById_Handler, }, { MethodName: "ResetPassword", Handler: _Users_ResetPassword_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "Protos/user.proto", }
Users_ServiceDesc is the grpc.ServiceDesc for Users service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterAuthServer ¶
func RegisterAuthServer(s grpc.ServiceRegistrar, srv AuthServer)
func RegisterUsersServer ¶
func RegisterUsersServer(s grpc.ServiceRegistrar, srv UsersServer)
Types ¶
type AuthClient ¶
type AuthClient interface { SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error) SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*SignUpResponse, error) GenerateHash(ctx context.Context, in *HashRequest, opts ...grpc.CallOption) (*HashResponse, error) }
AuthClient is the client API for Auth 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 NewAuthClient ¶
func NewAuthClient(cc grpc.ClientConnInterface) AuthClient
type AuthServer ¶
type AuthServer interface { SignIn(context.Context, *SignInRequest) (*SignInResponse, error) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error) GenerateHash(context.Context, *HashRequest) (*HashResponse, error) // contains filtered or unexported methods }
AuthServer is the server API for Auth service. All implementations must embed UnimplementedAuthServer for forward compatibility
type CreateRequest ¶
type CreateRequest struct { Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
Create
func (*CreateRequest) Descriptor
deprecated
func (*CreateRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) GetEmail ¶
func (x *CreateRequest) GetEmail() string
func (*CreateRequest) GetLogin ¶
func (x *CreateRequest) GetLogin() string
func (*CreateRequest) GetPassword ¶
func (x *CreateRequest) GetPassword() string
func (*CreateRequest) ProtoMessage ¶
func (*CreateRequest) ProtoMessage()
func (*CreateRequest) ProtoReflect ¶
func (x *CreateRequest) ProtoReflect() protoreflect.Message
func (*CreateRequest) Reset ¶
func (x *CreateRequest) Reset()
func (*CreateRequest) String ¶
func (x *CreateRequest) String() string
type CreateResponse ¶
type CreateResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*CreateResponse) Descriptor
deprecated
func (*CreateResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) GetId ¶
func (x *CreateResponse) GetId() int32
func (*CreateResponse) ProtoMessage ¶
func (*CreateResponse) ProtoMessage()
func (*CreateResponse) ProtoReflect ¶
func (x *CreateResponse) ProtoReflect() protoreflect.Message
func (*CreateResponse) Reset ¶
func (x *CreateResponse) Reset()
func (*CreateResponse) String ¶
func (x *CreateResponse) String() string
type GetByIdRequest ¶
type GetByIdRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
GetById
func (*GetByIdRequest) Descriptor
deprecated
func (*GetByIdRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdRequest.ProtoReflect.Descriptor instead.
func (*GetByIdRequest) GetId ¶
func (x *GetByIdRequest) GetId() int32
func (*GetByIdRequest) ProtoMessage ¶
func (*GetByIdRequest) ProtoMessage()
func (*GetByIdRequest) ProtoReflect ¶
func (x *GetByIdRequest) ProtoReflect() protoreflect.Message
func (*GetByIdRequest) Reset ¶
func (x *GetByIdRequest) Reset()
func (*GetByIdRequest) String ¶
func (x *GetByIdRequest) String() string
type GetByIdResponse ¶
type GetByIdResponse struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*GetByIdResponse) Descriptor
deprecated
func (*GetByIdResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetByIdResponse.ProtoReflect.Descriptor instead.
func (*GetByIdResponse) GetEmail ¶
func (x *GetByIdResponse) GetEmail() string
func (*GetByIdResponse) GetId ¶
func (x *GetByIdResponse) GetId() int32
func (*GetByIdResponse) GetLogin ¶
func (x *GetByIdResponse) GetLogin() string
func (*GetByIdResponse) ProtoMessage ¶
func (*GetByIdResponse) ProtoMessage()
func (*GetByIdResponse) ProtoReflect ¶
func (x *GetByIdResponse) ProtoReflect() protoreflect.Message
func (*GetByIdResponse) Reset ¶
func (x *GetByIdResponse) Reset()
func (*GetByIdResponse) String ¶
func (x *GetByIdResponse) String() string
type HashRequest ¶
type HashRequest struct { Str string `protobuf:"bytes,1,opt,name=str,proto3" json:"str,omitempty"` // contains filtered or unexported fields }
func (*HashRequest) Descriptor
deprecated
func (*HashRequest) Descriptor() ([]byte, []int)
Deprecated: Use HashRequest.ProtoReflect.Descriptor instead.
func (*HashRequest) GetStr ¶
func (x *HashRequest) GetStr() string
func (*HashRequest) ProtoMessage ¶
func (*HashRequest) ProtoMessage()
func (*HashRequest) ProtoReflect ¶
func (x *HashRequest) ProtoReflect() protoreflect.Message
func (*HashRequest) Reset ¶
func (x *HashRequest) Reset()
func (*HashRequest) String ¶
func (x *HashRequest) String() string
type HashResponse ¶
type HashResponse struct { Hashed string `protobuf:"bytes,1,opt,name=hashed,proto3" json:"hashed,omitempty"` // contains filtered or unexported fields }
func (*HashResponse) Descriptor
deprecated
func (*HashResponse) Descriptor() ([]byte, []int)
Deprecated: Use HashResponse.ProtoReflect.Descriptor instead.
func (*HashResponse) GetHashed ¶
func (x *HashResponse) GetHashed() string
func (*HashResponse) ProtoMessage ¶
func (*HashResponse) ProtoMessage()
func (*HashResponse) ProtoReflect ¶
func (x *HashResponse) ProtoReflect() protoreflect.Message
func (*HashResponse) Reset ¶
func (x *HashResponse) Reset()
func (*HashResponse) String ¶
func (x *HashResponse) String() string
type MailPayload ¶
type MailPayload struct { HTML string `protobuf:"bytes,1,opt,name=HTML,proto3" json:"HTML,omitempty"` Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"` Receivers []string `protobuf:"bytes,3,rep,name=receivers,proto3" json:"receivers,omitempty"` // contains filtered or unexported fields }
func (*MailPayload) Descriptor
deprecated
func (*MailPayload) Descriptor() ([]byte, []int)
Deprecated: Use MailPayload.ProtoReflect.Descriptor instead.
func (*MailPayload) GetHTML ¶
func (x *MailPayload) GetHTML() string
func (*MailPayload) GetReceivers ¶
func (x *MailPayload) GetReceivers() []string
func (*MailPayload) GetSubject ¶
func (x *MailPayload) GetSubject() string
func (*MailPayload) ProtoMessage ¶
func (*MailPayload) ProtoMessage()
func (*MailPayload) ProtoReflect ¶
func (x *MailPayload) ProtoReflect() protoreflect.Message
func (*MailPayload) Reset ¶
func (x *MailPayload) Reset()
func (*MailPayload) String ¶
func (x *MailPayload) String() string
type ResetPasswordRequest ¶
type ResetPasswordRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
GetById
func (*ResetPasswordRequest) Descriptor
deprecated
func (*ResetPasswordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.
func (*ResetPasswordRequest) GetEmail ¶
func (x *ResetPasswordRequest) GetEmail() string
func (*ResetPasswordRequest) ProtoMessage ¶
func (*ResetPasswordRequest) ProtoMessage()
func (*ResetPasswordRequest) ProtoReflect ¶
func (x *ResetPasswordRequest) ProtoReflect() protoreflect.Message
func (*ResetPasswordRequest) Reset ¶
func (x *ResetPasswordRequest) Reset()
func (*ResetPasswordRequest) String ¶
func (x *ResetPasswordRequest) String() string
type SignInRequest ¶
type SignInRequest 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"` // contains filtered or unexported fields }
func (*SignInRequest) Descriptor
deprecated
func (*SignInRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.
func (*SignInRequest) GetEmail ¶
func (x *SignInRequest) GetEmail() string
func (*SignInRequest) GetPassword ¶
func (x *SignInRequest) GetPassword() string
func (*SignInRequest) ProtoMessage ¶
func (*SignInRequest) ProtoMessage()
func (*SignInRequest) ProtoReflect ¶
func (x *SignInRequest) ProtoReflect() protoreflect.Message
func (*SignInRequest) Reset ¶
func (x *SignInRequest) Reset()
func (*SignInRequest) String ¶
func (x *SignInRequest) String() string
type SignInResponse ¶
type SignInResponse struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Token string `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*SignInResponse) Descriptor
deprecated
func (*SignInResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.
func (*SignInResponse) GetEmail ¶
func (x *SignInResponse) GetEmail() string
func (*SignInResponse) GetLogin ¶
func (x *SignInResponse) GetLogin() string
func (*SignInResponse) GetToken ¶
func (x *SignInResponse) GetToken() string
func (*SignInResponse) ProtoMessage ¶
func (*SignInResponse) ProtoMessage()
func (*SignInResponse) ProtoReflect ¶
func (x *SignInResponse) ProtoReflect() protoreflect.Message
func (*SignInResponse) Reset ¶
func (x *SignInResponse) Reset()
func (*SignInResponse) String ¶
func (x *SignInResponse) String() string
type SignUpRequest ¶
type SignUpRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Login string `protobuf:"bytes,2,opt,name=login,proto3" json:"login,omitempty"` Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*SignUpRequest) Descriptor
deprecated
func (*SignUpRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignUpRequest.ProtoReflect.Descriptor instead.
func (*SignUpRequest) GetEmail ¶
func (x *SignUpRequest) GetEmail() string
func (*SignUpRequest) GetLogin ¶
func (x *SignUpRequest) GetLogin() string
func (*SignUpRequest) GetPassword ¶
func (x *SignUpRequest) GetPassword() string
func (*SignUpRequest) ProtoMessage ¶
func (*SignUpRequest) ProtoMessage()
func (*SignUpRequest) ProtoReflect ¶
func (x *SignUpRequest) ProtoReflect() protoreflect.Message
func (*SignUpRequest) Reset ¶
func (x *SignUpRequest) Reset()
func (*SignUpRequest) String ¶
func (x *SignUpRequest) String() string
type SignUpResponse ¶
type SignUpResponse struct {
// contains filtered or unexported fields
}
func (*SignUpResponse) Descriptor
deprecated
func (*SignUpResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignUpResponse.ProtoReflect.Descriptor instead.
func (*SignUpResponse) ProtoMessage ¶
func (*SignUpResponse) ProtoMessage()
func (*SignUpResponse) ProtoReflect ¶
func (x *SignUpResponse) ProtoReflect() protoreflect.Message
func (*SignUpResponse) Reset ¶
func (x *SignUpResponse) Reset()
func (*SignUpResponse) String ¶
func (x *SignUpResponse) String() string
type UnimplementedAuthServer ¶
type UnimplementedAuthServer struct { }
UnimplementedAuthServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthServer) GenerateHash ¶
func (UnimplementedAuthServer) GenerateHash(context.Context, *HashRequest) (*HashResponse, error)
func (UnimplementedAuthServer) SignIn ¶
func (UnimplementedAuthServer) SignIn(context.Context, *SignInRequest) (*SignInResponse, error)
func (UnimplementedAuthServer) SignUp ¶
func (UnimplementedAuthServer) SignUp(context.Context, *SignUpRequest) (*SignUpResponse, error)
type UnimplementedUsersServer ¶
type UnimplementedUsersServer struct { }
UnimplementedUsersServer must be embedded to have forward compatible implementations.
func (UnimplementedUsersServer) Create ¶
func (UnimplementedUsersServer) Create(context.Context, *CreateRequest) (*CreateResponse, error)
func (UnimplementedUsersServer) GetById ¶
func (UnimplementedUsersServer) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error)
func (UnimplementedUsersServer) ResetPassword ¶
func (UnimplementedUsersServer) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error)
type UnsafeAuthServer ¶
type UnsafeAuthServer interface {
// contains filtered or unexported methods
}
UnsafeAuthServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthServer will result in compilation errors.
type UnsafeUsersServer ¶
type UnsafeUsersServer interface {
// contains filtered or unexported methods
}
UnsafeUsersServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UsersServer will result in compilation errors.
type UsersClient ¶
type UsersClient interface { Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) GetById(ctx context.Context, in *GetByIdRequest, opts ...grpc.CallOption) (*GetByIdResponse, error) ResetPassword(ctx context.Context, in *ResetPasswordRequest, opts ...grpc.CallOption) (*empty.Empty, error) }
UsersClient is the client API for Users 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 NewUsersClient ¶
func NewUsersClient(cc grpc.ClientConnInterface) UsersClient
type UsersServer ¶
type UsersServer interface { Create(context.Context, *CreateRequest) (*CreateResponse, error) GetById(context.Context, *GetByIdRequest) (*GetByIdResponse, error) ResetPassword(context.Context, *ResetPasswordRequest) (*empty.Empty, error) // contains filtered or unexported methods }
UsersServer is the server API for Users service. All implementations must embed UnimplementedUsersServer for forward compatibility