Documentation
¶
Index ¶
- Variables
- func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
- type AuthServiceClient
- type AuthServiceServer
- type GetAllUsersRequest
- type GetAllUsersResponse
- func (*GetAllUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllUsersResponse) GetUsers() []*GetPublicUserResponse
- func (*GetAllUsersResponse) ProtoMessage()
- func (x *GetAllUsersResponse) ProtoReflect() protoreflect.Message
- func (x *GetAllUsersResponse) Reset()
- func (x *GetAllUsersResponse) String() string
- type GetMeRequest
- type GetMeResponse
- func (*GetMeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMeResponse) GetEmail() string
- func (x *GetMeResponse) GetUserUuid() string
- func (x *GetMeResponse) GetUsername() string
- func (*GetMeResponse) ProtoMessage()
- func (x *GetMeResponse) ProtoReflect() protoreflect.Message
- func (x *GetMeResponse) Reset()
- func (x *GetMeResponse) String() string
- type GetMyInterestsRequest
- func (*GetMyInterestsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMyInterestsRequest) GetToken() string
- func (*GetMyInterestsRequest) ProtoMessage()
- func (x *GetMyInterestsRequest) ProtoReflect() protoreflect.Message
- func (x *GetMyInterestsRequest) Reset()
- func (x *GetMyInterestsRequest) String() string
- type GetMyInterestsResponse
- func (*GetMyInterestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetMyInterestsResponse) GetInterests() []string
- func (*GetMyInterestsResponse) ProtoMessage()
- func (x *GetMyInterestsResponse) ProtoReflect() protoreflect.Message
- func (x *GetMyInterestsResponse) Reset()
- func (x *GetMyInterestsResponse) String() string
- type GetPublicUserRequest
- func (*GetPublicUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicUserRequest) GetUserUuid() string
- func (*GetPublicUserRequest) ProtoMessage()
- func (x *GetPublicUserRequest) ProtoReflect() protoreflect.Message
- func (x *GetPublicUserRequest) Reset()
- func (x *GetPublicUserRequest) String() string
- type GetPublicUserResponse
- func (*GetPublicUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPublicUserResponse) GetUserUuid() string
- func (x *GetPublicUserResponse) GetUsername() string
- func (*GetPublicUserResponse) ProtoMessage()
- func (x *GetPublicUserResponse) ProtoReflect() protoreflect.Message
- func (x *GetPublicUserResponse) Reset()
- func (x *GetPublicUserResponse) String() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() 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) GetRefreshToken() string
- func (x *LoginResponse) GetToken() string
- func (x *LoginResponse) GetUserUuid() string
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- type RefreshTokenRequest
- func (*RefreshTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenRequest) GetRefreshToken() string
- func (*RefreshTokenRequest) ProtoMessage()
- func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenRequest) Reset()
- func (x *RefreshTokenRequest) String() string
- type RefreshTokenResponse
- func (*RefreshTokenResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RefreshTokenResponse) GetRefreshToken() string
- func (x *RefreshTokenResponse) GetToken() string
- func (x *RefreshTokenResponse) GetUserUuid() string
- func (*RefreshTokenResponse) ProtoMessage()
- func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
- func (x *RefreshTokenResponse) Reset()
- func (x *RefreshTokenResponse) String() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetPassword() string
- func (x *RegisterRequest) GetUsername() 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) GetRefreshToken() string
- func (x *RegisterResponse) GetToken() string
- func (x *RegisterResponse) GetUserUuid() string
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- type UnimplementedAuthServiceServer
- func (UnimplementedAuthServiceServer) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error)
- func (UnimplementedAuthServiceServer) GetMe(context.Context, *GetMeRequest) (*GetMeResponse, error)
- func (UnimplementedAuthServiceServer) GetMyInterests(context.Context, *GetMyInterestsRequest) (*GetMyInterestsResponse, error)
- func (UnimplementedAuthServiceServer) GetPublicUser(context.Context, *GetPublicUserRequest) (*GetPublicUserResponse, error)
- func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
- func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedAuthServiceServer) UpdateMyInterests(context.Context, *UpdateMyInterestsRequest) (*UpdateMyInterestsResponse, error)
- func (UnimplementedAuthServiceServer) ValidateUser(context.Context, *ValidateUserRequest) (*ValidateUserResponse, error)
- type UnsafeAuthServiceServer
- type UpdateMyInterestsRequest
- func (*UpdateMyInterestsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMyInterestsRequest) GetInterests() []string
- func (x *UpdateMyInterestsRequest) GetToken() string
- func (*UpdateMyInterestsRequest) ProtoMessage()
- func (x *UpdateMyInterestsRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMyInterestsRequest) Reset()
- func (x *UpdateMyInterestsRequest) String() string
- type UpdateMyInterestsResponse
- func (*UpdateMyInterestsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMyInterestsResponse) GetInterests() []string
- func (*UpdateMyInterestsResponse) ProtoMessage()
- func (x *UpdateMyInterestsResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateMyInterestsResponse) Reset()
- func (x *UpdateMyInterestsResponse) String() string
- type ValidateUserRequest
- func (*ValidateUserRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateUserRequest) GetToken() string
- func (*ValidateUserRequest) ProtoMessage()
- func (x *ValidateUserRequest) ProtoReflect() protoreflect.Message
- func (x *ValidateUserRequest) Reset()
- func (x *ValidateUserRequest) String() string
- type ValidateUserResponse
- func (*ValidateUserResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateUserResponse) GetUserUuid() string
- func (*ValidateUserResponse) ProtoMessage()
- func (x *ValidateUserResponse) ProtoReflect() protoreflect.Message
- func (x *ValidateUserResponse) Reset()
- func (x *ValidateUserResponse) String() string
Constants ¶
This section is empty.
Variables ¶
var AuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "auth.AuthService", HandlerType: (*AuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _AuthService_Login_Handler, }, { MethodName: "Register", Handler: _AuthService_Register_Handler, }, { MethodName: "ValidateUser", Handler: _AuthService_ValidateUser_Handler, }, { MethodName: "GetMe", Handler: _AuthService_GetMe_Handler, }, { MethodName: "UpdateMyInterests", Handler: _AuthService_UpdateMyInterests_Handler, }, { MethodName: "GetMyInterests", Handler: _AuthService_GetMyInterests_Handler, }, { MethodName: "GetPublicUser", Handler: _AuthService_GetPublicUser_Handler, }, { MethodName: "GetAllUsers", Handler: _AuthService_GetAllUsers_Handler, }, { MethodName: "RefreshToken", Handler: _AuthService_RefreshToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/auth/pb/auth.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_pkg_auth_pb_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthServiceServer ¶
func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)
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) ValidateUser(ctx context.Context, in *ValidateUserRequest, opts ...grpc.CallOption) (*ValidateUserResponse, error) GetMe(ctx context.Context, in *GetMeRequest, opts ...grpc.CallOption) (*GetMeResponse, error) UpdateMyInterests(ctx context.Context, in *UpdateMyInterestsRequest, opts ...grpc.CallOption) (*UpdateMyInterestsResponse, error) GetMyInterests(ctx context.Context, in *GetMyInterestsRequest, opts ...grpc.CallOption) (*GetMyInterestsResponse, error) GetPublicUser(ctx context.Context, in *GetPublicUserRequest, opts ...grpc.CallOption) (*GetPublicUserResponse, error) GetAllUsers(ctx context.Context, in *GetAllUsersRequest, opts ...grpc.CallOption) (*GetAllUsersResponse, error) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*RefreshTokenResponse, 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) ValidateUser(context.Context, *ValidateUserRequest) (*ValidateUserResponse, error) GetMe(context.Context, *GetMeRequest) (*GetMeResponse, error) UpdateMyInterests(context.Context, *UpdateMyInterestsRequest) (*UpdateMyInterestsResponse, error) GetMyInterests(context.Context, *GetMyInterestsRequest) (*GetMyInterestsResponse, error) GetPublicUser(context.Context, *GetPublicUserRequest) (*GetPublicUserResponse, error) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error) }
AuthServiceServer is the server API for AuthService service. All implementations should embed UnimplementedAuthServiceServer for forward compatibility
type GetAllUsersRequest ¶
type GetAllUsersRequest struct {
// contains filtered or unexported fields
}
func (*GetAllUsersRequest) Descriptor
deprecated
func (*GetAllUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAllUsersRequest.ProtoReflect.Descriptor instead.
func (*GetAllUsersRequest) ProtoMessage ¶
func (*GetAllUsersRequest) ProtoMessage()
func (*GetAllUsersRequest) ProtoReflect ¶
func (x *GetAllUsersRequest) ProtoReflect() protoreflect.Message
func (*GetAllUsersRequest) Reset ¶
func (x *GetAllUsersRequest) Reset()
func (*GetAllUsersRequest) String ¶
func (x *GetAllUsersRequest) String() string
type GetAllUsersResponse ¶
type GetAllUsersResponse struct { Users []*GetPublicUserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetAllUsersResponse) Descriptor
deprecated
func (*GetAllUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAllUsersResponse.ProtoReflect.Descriptor instead.
func (*GetAllUsersResponse) GetUsers ¶
func (x *GetAllUsersResponse) GetUsers() []*GetPublicUserResponse
func (*GetAllUsersResponse) ProtoMessage ¶
func (*GetAllUsersResponse) ProtoMessage()
func (*GetAllUsersResponse) ProtoReflect ¶
func (x *GetAllUsersResponse) ProtoReflect() protoreflect.Message
func (*GetAllUsersResponse) Reset ¶
func (x *GetAllUsersResponse) Reset()
func (*GetAllUsersResponse) String ¶
func (x *GetAllUsersResponse) String() string
type GetMeRequest ¶
type GetMeRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetMeRequest) Descriptor
deprecated
func (*GetMeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMeRequest.ProtoReflect.Descriptor instead.
func (*GetMeRequest) GetToken ¶
func (x *GetMeRequest) GetToken() string
func (*GetMeRequest) ProtoMessage ¶
func (*GetMeRequest) ProtoMessage()
func (*GetMeRequest) ProtoReflect ¶
func (x *GetMeRequest) ProtoReflect() protoreflect.Message
func (*GetMeRequest) Reset ¶
func (x *GetMeRequest) Reset()
func (*GetMeRequest) String ¶
func (x *GetMeRequest) String() string
type GetMeResponse ¶
type GetMeResponse struct { UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"` Email string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetMeResponse) Descriptor
deprecated
func (*GetMeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMeResponse.ProtoReflect.Descriptor instead.
func (*GetMeResponse) GetEmail ¶
func (x *GetMeResponse) GetEmail() string
func (*GetMeResponse) GetUserUuid ¶
func (x *GetMeResponse) GetUserUuid() string
func (*GetMeResponse) GetUsername ¶
func (x *GetMeResponse) GetUsername() string
func (*GetMeResponse) ProtoMessage ¶
func (*GetMeResponse) ProtoMessage()
func (*GetMeResponse) ProtoReflect ¶
func (x *GetMeResponse) ProtoReflect() protoreflect.Message
func (*GetMeResponse) Reset ¶
func (x *GetMeResponse) Reset()
func (*GetMeResponse) String ¶
func (x *GetMeResponse) String() string
type GetMyInterestsRequest ¶
type GetMyInterestsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*GetMyInterestsRequest) Descriptor
deprecated
func (*GetMyInterestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMyInterestsRequest.ProtoReflect.Descriptor instead.
func (*GetMyInterestsRequest) GetToken ¶
func (x *GetMyInterestsRequest) GetToken() string
func (*GetMyInterestsRequest) ProtoMessage ¶
func (*GetMyInterestsRequest) ProtoMessage()
func (*GetMyInterestsRequest) ProtoReflect ¶
func (x *GetMyInterestsRequest) ProtoReflect() protoreflect.Message
func (*GetMyInterestsRequest) Reset ¶
func (x *GetMyInterestsRequest) Reset()
func (*GetMyInterestsRequest) String ¶
func (x *GetMyInterestsRequest) String() string
type GetMyInterestsResponse ¶
type GetMyInterestsResponse struct { Interests []string `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"` // contains filtered or unexported fields }
func (*GetMyInterestsResponse) Descriptor
deprecated
func (*GetMyInterestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetMyInterestsResponse.ProtoReflect.Descriptor instead.
func (*GetMyInterestsResponse) GetInterests ¶
func (x *GetMyInterestsResponse) GetInterests() []string
func (*GetMyInterestsResponse) ProtoMessage ¶
func (*GetMyInterestsResponse) ProtoMessage()
func (*GetMyInterestsResponse) ProtoReflect ¶
func (x *GetMyInterestsResponse) ProtoReflect() protoreflect.Message
func (*GetMyInterestsResponse) Reset ¶
func (x *GetMyInterestsResponse) Reset()
func (*GetMyInterestsResponse) String ¶
func (x *GetMyInterestsResponse) String() string
type GetPublicUserRequest ¶
type GetPublicUserRequest struct { UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"` // contains filtered or unexported fields }
func (*GetPublicUserRequest) Descriptor
deprecated
func (*GetPublicUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicUserRequest.ProtoReflect.Descriptor instead.
func (*GetPublicUserRequest) GetUserUuid ¶
func (x *GetPublicUserRequest) GetUserUuid() string
func (*GetPublicUserRequest) ProtoMessage ¶
func (*GetPublicUserRequest) ProtoMessage()
func (*GetPublicUserRequest) ProtoReflect ¶
func (x *GetPublicUserRequest) ProtoReflect() protoreflect.Message
func (*GetPublicUserRequest) Reset ¶
func (x *GetPublicUserRequest) Reset()
func (*GetPublicUserRequest) String ¶
func (x *GetPublicUserRequest) String() string
type GetPublicUserResponse ¶
type GetPublicUserResponse struct { UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"` Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // contains filtered or unexported fields }
func (*GetPublicUserResponse) Descriptor
deprecated
func (*GetPublicUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPublicUserResponse.ProtoReflect.Descriptor instead.
func (*GetPublicUserResponse) GetUserUuid ¶
func (x *GetPublicUserResponse) GetUserUuid() string
func (*GetPublicUserResponse) GetUsername ¶
func (x *GetPublicUserResponse) GetUsername() string
func (*GetPublicUserResponse) ProtoMessage ¶
func (*GetPublicUserResponse) ProtoMessage()
func (*GetPublicUserResponse) ProtoReflect ¶
func (x *GetPublicUserResponse) ProtoReflect() protoreflect.Message
func (*GetPublicUserResponse) Reset ¶
func (x *GetPublicUserResponse) Reset()
func (*GetPublicUserResponse) String ¶
func (x *GetPublicUserResponse) String() string
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"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() 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"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` UserUuid string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetRefreshToken ¶
func (x *LoginResponse) GetRefreshToken() string
func (*LoginResponse) GetToken ¶
func (x *LoginResponse) GetToken() string
func (*LoginResponse) GetUserUuid ¶
func (x *LoginResponse) GetUserUuid() 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 RefreshTokenRequest ¶
type RefreshTokenRequest struct { RefreshToken string `protobuf:"bytes,1,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenRequest) Descriptor
deprecated
func (*RefreshTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.
func (*RefreshTokenRequest) GetRefreshToken ¶
func (x *RefreshTokenRequest) GetRefreshToken() string
func (*RefreshTokenRequest) ProtoMessage ¶
func (*RefreshTokenRequest) ProtoMessage()
func (*RefreshTokenRequest) ProtoReflect ¶
func (x *RefreshTokenRequest) ProtoReflect() protoreflect.Message
func (*RefreshTokenRequest) Reset ¶
func (x *RefreshTokenRequest) Reset()
func (*RefreshTokenRequest) String ¶
func (x *RefreshTokenRequest) String() string
type RefreshTokenResponse ¶
type RefreshTokenResponse struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` UserUuid string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"` // contains filtered or unexported fields }
func (*RefreshTokenResponse) Descriptor
deprecated
func (*RefreshTokenResponse) Descriptor() ([]byte, []int)
Deprecated: Use RefreshTokenResponse.ProtoReflect.Descriptor instead.
func (*RefreshTokenResponse) GetRefreshToken ¶
func (x *RefreshTokenResponse) GetRefreshToken() string
func (*RefreshTokenResponse) GetToken ¶
func (x *RefreshTokenResponse) GetToken() string
func (*RefreshTokenResponse) GetUserUuid ¶
func (x *RefreshTokenResponse) GetUserUuid() string
func (*RefreshTokenResponse) ProtoMessage ¶
func (*RefreshTokenResponse) ProtoMessage()
func (*RefreshTokenResponse) ProtoReflect ¶
func (x *RefreshTokenResponse) ProtoReflect() protoreflect.Message
func (*RefreshTokenResponse) Reset ¶
func (x *RefreshTokenResponse) Reset()
func (*RefreshTokenResponse) String ¶
func (x *RefreshTokenResponse) String() string
type RegisterRequest ¶
type RegisterRequest 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"` Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,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) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) GetUsername ¶
func (x *RegisterRequest) GetUsername() 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 { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` RefreshToken string `protobuf:"bytes,2,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"` UserUuid string `protobuf:"bytes,3,opt,name=userUuid,proto3" json:"userUuid,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetRefreshToken ¶
func (x *RegisterResponse) GetRefreshToken() string
func (*RegisterResponse) GetToken ¶
func (x *RegisterResponse) GetToken() string
func (*RegisterResponse) GetUserUuid ¶
func (x *RegisterResponse) GetUserUuid() string
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 should be embedded to have forward compatible implementations.
func (UnimplementedAuthServiceServer) GetAllUsers ¶
func (UnimplementedAuthServiceServer) GetAllUsers(context.Context, *GetAllUsersRequest) (*GetAllUsersResponse, error)
func (UnimplementedAuthServiceServer) GetMe ¶
func (UnimplementedAuthServiceServer) GetMe(context.Context, *GetMeRequest) (*GetMeResponse, error)
func (UnimplementedAuthServiceServer) GetMyInterests ¶
func (UnimplementedAuthServiceServer) GetMyInterests(context.Context, *GetMyInterestsRequest) (*GetMyInterestsResponse, error)
func (UnimplementedAuthServiceServer) GetPublicUser ¶
func (UnimplementedAuthServiceServer) GetPublicUser(context.Context, *GetPublicUserRequest) (*GetPublicUserResponse, error)
func (UnimplementedAuthServiceServer) Login ¶
func (UnimplementedAuthServiceServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedAuthServiceServer) RefreshToken ¶
func (UnimplementedAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*RefreshTokenResponse, error)
func (UnimplementedAuthServiceServer) Register ¶
func (UnimplementedAuthServiceServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAuthServiceServer) UpdateMyInterests ¶
func (UnimplementedAuthServiceServer) UpdateMyInterests(context.Context, *UpdateMyInterestsRequest) (*UpdateMyInterestsResponse, error)
func (UnimplementedAuthServiceServer) ValidateUser ¶
func (UnimplementedAuthServiceServer) ValidateUser(context.Context, *ValidateUserRequest) (*ValidateUserResponse, 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 UpdateMyInterestsRequest ¶
type UpdateMyInterestsRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Interests []string `protobuf:"bytes,2,rep,name=interests,proto3" json:"interests,omitempty"` // contains filtered or unexported fields }
func (*UpdateMyInterestsRequest) Descriptor
deprecated
func (*UpdateMyInterestsRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMyInterestsRequest.ProtoReflect.Descriptor instead.
func (*UpdateMyInterestsRequest) GetInterests ¶
func (x *UpdateMyInterestsRequest) GetInterests() []string
func (*UpdateMyInterestsRequest) GetToken ¶
func (x *UpdateMyInterestsRequest) GetToken() string
func (*UpdateMyInterestsRequest) ProtoMessage ¶
func (*UpdateMyInterestsRequest) ProtoMessage()
func (*UpdateMyInterestsRequest) ProtoReflect ¶
func (x *UpdateMyInterestsRequest) ProtoReflect() protoreflect.Message
func (*UpdateMyInterestsRequest) Reset ¶
func (x *UpdateMyInterestsRequest) Reset()
func (*UpdateMyInterestsRequest) String ¶
func (x *UpdateMyInterestsRequest) String() string
type UpdateMyInterestsResponse ¶
type UpdateMyInterestsResponse struct { Interests []string `protobuf:"bytes,1,rep,name=interests,proto3" json:"interests,omitempty"` // contains filtered or unexported fields }
func (*UpdateMyInterestsResponse) Descriptor
deprecated
func (*UpdateMyInterestsResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMyInterestsResponse.ProtoReflect.Descriptor instead.
func (*UpdateMyInterestsResponse) GetInterests ¶
func (x *UpdateMyInterestsResponse) GetInterests() []string
func (*UpdateMyInterestsResponse) ProtoMessage ¶
func (*UpdateMyInterestsResponse) ProtoMessage()
func (*UpdateMyInterestsResponse) ProtoReflect ¶
func (x *UpdateMyInterestsResponse) ProtoReflect() protoreflect.Message
func (*UpdateMyInterestsResponse) Reset ¶
func (x *UpdateMyInterestsResponse) Reset()
func (*UpdateMyInterestsResponse) String ¶
func (x *UpdateMyInterestsResponse) String() string
type ValidateUserRequest ¶
type ValidateUserRequest struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*ValidateUserRequest) Descriptor
deprecated
func (*ValidateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateUserRequest.ProtoReflect.Descriptor instead.
func (*ValidateUserRequest) GetToken ¶
func (x *ValidateUserRequest) GetToken() string
func (*ValidateUserRequest) ProtoMessage ¶
func (*ValidateUserRequest) ProtoMessage()
func (*ValidateUserRequest) ProtoReflect ¶
func (x *ValidateUserRequest) ProtoReflect() protoreflect.Message
func (*ValidateUserRequest) Reset ¶
func (x *ValidateUserRequest) Reset()
func (*ValidateUserRequest) String ¶
func (x *ValidateUserRequest) String() string
type ValidateUserResponse ¶
type ValidateUserResponse struct { UserUuid string `protobuf:"bytes,1,opt,name=userUuid,proto3" json:"userUuid,omitempty"` // contains filtered or unexported fields }
func (*ValidateUserResponse) Descriptor
deprecated
func (*ValidateUserResponse) Descriptor() ([]byte, []int)
Deprecated: Use ValidateUserResponse.ProtoReflect.Descriptor instead.
func (*ValidateUserResponse) GetUserUuid ¶
func (x *ValidateUserResponse) GetUserUuid() string
func (*ValidateUserResponse) ProtoMessage ¶
func (*ValidateUserResponse) ProtoMessage()
func (*ValidateUserResponse) ProtoReflect ¶
func (x *ValidateUserResponse) ProtoReflect() protoreflect.Message
func (*ValidateUserResponse) Reset ¶
func (x *ValidateUserResponse) Reset()
func (*ValidateUserResponse) String ¶
func (x *ValidateUserResponse) String() string