Versions in this module Expand all Collapse all v1 v1.1.0 Aug 27, 2021 v1.0.0 Aug 27, 2021 Changes in this version + var File_v1_users_proto protoreflect.FileDescriptor + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error + func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error + func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error) + func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type AuthenticationResponse struct + Token string + User *UserResponse + func (*AuthenticationResponse) Descriptor() ([]byte, []int) + func (*AuthenticationResponse) ProtoMessage() + func (m *AuthenticationResponse) Validate() error + func (x *AuthenticationResponse) GetToken() string + func (x *AuthenticationResponse) GetUser() *UserResponse + func (x *AuthenticationResponse) ProtoReflect() protoreflect.Message + func (x *AuthenticationResponse) Reset() + func (x *AuthenticationResponse) String() string + type AuthenticationResponseValidationError struct + func (e AuthenticationResponseValidationError) Cause() error + func (e AuthenticationResponseValidationError) Error() string + func (e AuthenticationResponseValidationError) ErrorName() string + func (e AuthenticationResponseValidationError) Field() string + func (e AuthenticationResponseValidationError) Key() bool + func (e AuthenticationResponseValidationError) Reason() string + type Empty struct + func (*Empty) Descriptor() ([]byte, []int) + func (*Empty) ProtoMessage() + func (m *Empty) Validate() error + func (x *Empty) ProtoReflect() protoreflect.Message + func (x *Empty) Reset() + func (x *Empty) String() string + type EmptyValidationError struct + func (e EmptyValidationError) Cause() error + func (e EmptyValidationError) Error() string + func (e EmptyValidationError) ErrorName() string + func (e EmptyValidationError) Field() string + func (e EmptyValidationError) Key() bool + func (e EmptyValidationError) Reason() string + type LoginRequest struct + Email string + Password string + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (m *LoginRequest) Validate() error + func (x *LoginRequest) GetEmail() string + func (x *LoginRequest) GetPassword() string + func (x *LoginRequest) ProtoReflect() protoreflect.Message + func (x *LoginRequest) Reset() + func (x *LoginRequest) String() string + type LoginRequestValidationError struct + func (e LoginRequestValidationError) Cause() error + func (e LoginRequestValidationError) Error() string + func (e LoginRequestValidationError) ErrorName() string + func (e LoginRequestValidationError) Field() string + func (e LoginRequestValidationError) Key() bool + func (e LoginRequestValidationError) Reason() string + type RegistrationRequest struct + Email string + Password string + func (*RegistrationRequest) Descriptor() ([]byte, []int) + func (*RegistrationRequest) ProtoMessage() + func (m *RegistrationRequest) Validate() error + func (x *RegistrationRequest) GetEmail() string + func (x *RegistrationRequest) GetPassword() string + func (x *RegistrationRequest) ProtoReflect() protoreflect.Message + func (x *RegistrationRequest) Reset() + func (x *RegistrationRequest) String() string + type RegistrationRequestValidationError struct + func (e RegistrationRequestValidationError) Cause() error + func (e RegistrationRequestValidationError) Error() string + func (e RegistrationRequestValidationError) ErrorName() string + func (e RegistrationRequestValidationError) Field() string + func (e RegistrationRequestValidationError) Key() bool + func (e RegistrationRequestValidationError) Reason() string + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) GetCurrent(context.Context, *Empty) (*UserResponse, error) + func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*AuthenticationResponse, error) + func (UnimplementedUserServiceServer) Register(context.Context, *RegistrationRequest) (*AuthenticationResponse, error) + type UnsafeUserServiceServer interface + type UserResponse struct + Email string + func (*UserResponse) Descriptor() ([]byte, []int) + func (*UserResponse) ProtoMessage() + func (m *UserResponse) Validate() error + func (x *UserResponse) GetEmail() string + func (x *UserResponse) ProtoReflect() protoreflect.Message + func (x *UserResponse) Reset() + func (x *UserResponse) String() string + type UserResponseValidationError struct + func (e UserResponseValidationError) Cause() error + func (e UserResponseValidationError) Error() string + func (e UserResponseValidationError) ErrorName() string + func (e UserResponseValidationError) Field() string + func (e UserResponseValidationError) Key() bool + func (e UserResponseValidationError) Reason() string + type UserServiceClient interface + GetCurrent func(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UserResponse, error) + Login func(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) + Register func(ctx context.Context, in *RegistrationRequest, opts ...grpc.CallOption) (*AuthenticationResponse, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + GetCurrent func(context.Context, *Empty) (*UserResponse, error) + Login func(context.Context, *LoginRequest) (*AuthenticationResponse, error) + Register func(context.Context, *RegistrationRequest) (*AuthenticationResponse, error)