intrvproto

package
v0.0.0-...-1b39580 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "intrvproto.AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignUpUser",
			Handler:    _AuthService_SignUpUser_Handler,
		},
		{
			MethodName: "SignInUser",
			Handler:    _AuthService_SignInUser_Handler,
		},
		{
			MethodName: "GetVerificationKey",
			Handler:    _AuthService_GetVerificationKey_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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)

View Source
var File_auth_service_proto protoreflect.FileDescriptor
View Source
var File_basic_type_proto protoreflect.FileDescriptor
View Source
var File_rpc_signin_proto protoreflect.FileDescriptor
View Source
var File_user_service_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "intrvproto.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckUserExists",
			Handler:    _UserService_CheckUserExists_Handler,
		},
		{
			MethodName: "GetUserByID",
			Handler:    _UserService_GetUserById_Handler,
		},
		{
			MethodName: "GetUserDetails",
			Handler:    _UserService_GetUserDetails_Handler,
		},
		{
			MethodName: "VerifyUser",
			Handler:    _UserService_VerifyUser_Handler,
		},
		{
			MethodName: "ChangePassword",
			Handler:    _UserService_ChangePassword_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_service.proto",
}

UserService_ServiceDesc is the grpc.ServiceDesc for UserService 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 RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AuthServiceClient

type AuthServiceClient interface {
	SignUpUser(ctx context.Context, in *SignUpUserInput, opts ...grpc.CallOption) (*SignUpUserResponse, error)
	SignInUser(ctx context.Context, in *SignInUserInput, opts ...grpc.CallOption) (*SignInUserResponse, error)
	GetVerificationKey(ctx context.Context, in *VerificationCodeRequest, opts ...grpc.CallOption) (*VerificationCodeResponse, 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.

type AuthServiceServer

type AuthServiceServer interface {
	SignUpUser(context.Context, *SignUpUserInput) (*SignUpUserResponse, error)
	SignInUser(context.Context, *SignInUserInput) (*SignInUserResponse, error)
	GetVerificationKey(context.Context, *VerificationCodeRequest) (*VerificationCodeResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type BoolValue

type BoolValue struct {
	Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*BoolValue) Descriptor deprecated

func (*BoolValue) Descriptor() ([]byte, []int)

Deprecated: Use BoolValue.ProtoReflect.Descriptor instead.

func (*BoolValue) GetValue

func (x *BoolValue) GetValue() bool

func (*BoolValue) ProtoMessage

func (*BoolValue) ProtoMessage()

func (*BoolValue) ProtoReflect

func (x *BoolValue) ProtoReflect() protoreflect.Message

func (*BoolValue) Reset

func (x *BoolValue) Reset()

func (*BoolValue) String

func (x *BoolValue) String() string

type ChangePasswordRequest

type ChangePasswordRequest struct {
	Id       int64  `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=Password,proto3" json:"Password,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordRequest) Descriptor deprecated

func (*ChangePasswordRequest) Descriptor() ([]byte, []int)

Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangePasswordRequest) GetId

func (x *ChangePasswordRequest) GetId() int64

func (*ChangePasswordRequest) GetPassword

func (x *ChangePasswordRequest) GetPassword() string

func (*ChangePasswordRequest) ProtoMessage

func (*ChangePasswordRequest) ProtoMessage()

func (*ChangePasswordRequest) ProtoReflect

func (x *ChangePasswordRequest) ProtoReflect() protoreflect.Message

func (*ChangePasswordRequest) Reset

func (x *ChangePasswordRequest) Reset()

func (*ChangePasswordRequest) String

func (x *ChangePasswordRequest) String() string

type ChangePasswordResponse

type ChangePasswordResponse struct {
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordResponse) Descriptor deprecated

func (*ChangePasswordResponse) Descriptor() ([]byte, []int)

Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.

func (*ChangePasswordResponse) GetStatus

func (x *ChangePasswordResponse) GetStatus() string

func (*ChangePasswordResponse) ProtoMessage

func (*ChangePasswordResponse) ProtoMessage()

func (*ChangePasswordResponse) ProtoReflect

func (x *ChangePasswordResponse) ProtoReflect() protoreflect.Message

func (*ChangePasswordResponse) Reset

func (x *ChangePasswordResponse) Reset()

func (*ChangePasswordResponse) String

func (x *ChangePasswordResponse) String() string

type GenericResponse

type GenericResponse struct {
	Status  string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*GenericResponse) Descriptor deprecated

func (*GenericResponse) Descriptor() ([]byte, []int)

Deprecated: Use GenericResponse.ProtoReflect.Descriptor instead.

func (*GenericResponse) GetMessage

func (x *GenericResponse) GetMessage() string

func (*GenericResponse) GetStatus

func (x *GenericResponse) GetStatus() string

func (*GenericResponse) ProtoMessage

func (*GenericResponse) ProtoMessage()

func (*GenericResponse) ProtoReflect

func (x *GenericResponse) ProtoReflect() protoreflect.Message

func (*GenericResponse) Reset

func (x *GenericResponse) Reset()

func (*GenericResponse) String

func (x *GenericResponse) String() string

type GetUserRequest

type GetUserRequest struct {
	UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserRequest) Descriptor deprecated

func (*GetUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetUserId

func (x *GetUserRequest) GetUserId() int64

func (*GetUserRequest) ProtoMessage

func (*GetUserRequest) ProtoMessage()

func (*GetUserRequest) ProtoReflect

func (x *GetUserRequest) ProtoReflect() protoreflect.Message

func (*GetUserRequest) Reset

func (x *GetUserRequest) Reset()

func (*GetUserRequest) String

func (x *GetUserRequest) String() string

type GetUserResponse

type GetUserResponse struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

func (*GetUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetEmail

func (x *GetUserResponse) GetEmail() string

func (*GetUserResponse) GetUsername

func (x *GetUserResponse) GetUsername() string

func (*GetUserResponse) ProtoMessage

func (*GetUserResponse) ProtoMessage()

func (*GetUserResponse) ProtoReflect

func (x *GetUserResponse) ProtoReflect() protoreflect.Message

func (*GetUserResponse) Reset

func (x *GetUserResponse) Reset()

func (*GetUserResponse) String

func (x *GetUserResponse) String() string

type GetUserSignInRequest

type GetUserSignInRequest struct {
	Id       int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,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
}

func (*GetUserSignInRequest) Descriptor deprecated

func (*GetUserSignInRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUserSignInRequest.ProtoReflect.Descriptor instead.

func (*GetUserSignInRequest) GetEmail

func (x *GetUserSignInRequest) GetEmail() string

func (*GetUserSignInRequest) GetId

func (x *GetUserSignInRequest) GetId() int64

func (*GetUserSignInRequest) GetPassword

func (x *GetUserSignInRequest) GetPassword() string

func (*GetUserSignInRequest) GetUsername

func (x *GetUserSignInRequest) GetUsername() string

func (*GetUserSignInRequest) ProtoMessage

func (*GetUserSignInRequest) ProtoMessage()

func (*GetUserSignInRequest) ProtoReflect

func (x *GetUserSignInRequest) ProtoReflect() protoreflect.Message

func (*GetUserSignInRequest) Reset

func (x *GetUserSignInRequest) Reset()

func (*GetUserSignInRequest) String

func (x *GetUserSignInRequest) String() string

type GetUsersRequest

type GetUsersRequest struct {
	Users []*GetUserRequest `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersRequest) Descriptor deprecated

func (*GetUsersRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.

func (*GetUsersRequest) GetUsers

func (x *GetUsersRequest) GetUsers() []*GetUserRequest

func (*GetUsersRequest) ProtoMessage

func (*GetUsersRequest) ProtoMessage()

func (*GetUsersRequest) ProtoReflect

func (x *GetUsersRequest) ProtoReflect() protoreflect.Message

func (*GetUsersRequest) Reset

func (x *GetUsersRequest) Reset()

func (*GetUsersRequest) String

func (x *GetUsersRequest) String() string

type GetUsersResponse

type GetUsersResponse struct {
	Users []*GetUserResponse `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"`
	Email string             `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUsersResponse) Descriptor deprecated

func (*GetUsersResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetUsersResponse.ProtoReflect.Descriptor instead.

func (*GetUsersResponse) GetEmail

func (x *GetUsersResponse) GetEmail() string

func (*GetUsersResponse) GetUsers

func (x *GetUsersResponse) GetUsers() []*GetUserResponse

func (*GetUsersResponse) ProtoMessage

func (*GetUsersResponse) ProtoMessage()

func (*GetUsersResponse) ProtoReflect

func (x *GetUsersResponse) ProtoReflect() protoreflect.Message

func (*GetUsersResponse) Reset

func (x *GetUsersResponse) Reset()

func (*GetUsersResponse) String

func (x *GetUsersResponse) String() string

type SignInUserInput

type SignInUserInput struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,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"`
	// contains filtered or unexported fields
}

func (*SignInUserInput) Descriptor deprecated

func (*SignInUserInput) Descriptor() ([]byte, []int)

Deprecated: Use SignInUserInput.ProtoReflect.Descriptor instead.

func (*SignInUserInput) GetEmail

func (x *SignInUserInput) GetEmail() string

func (*SignInUserInput) GetPassword

func (x *SignInUserInput) GetPassword() string

func (*SignInUserInput) GetUsername

func (x *SignInUserInput) GetUsername() string

func (*SignInUserInput) ProtoMessage

func (*SignInUserInput) ProtoMessage()

func (*SignInUserInput) ProtoReflect

func (x *SignInUserInput) ProtoReflect() protoreflect.Message

func (*SignInUserInput) Reset

func (x *SignInUserInput) Reset()

func (*SignInUserInput) String

func (x *SignInUserInput) String() string

type SignInUserResponse

type SignInUserResponse struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	RefreshToken string `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInUserResponse) Descriptor deprecated

func (*SignInUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignInUserResponse.ProtoReflect.Descriptor instead.

func (*SignInUserResponse) GetAccessToken

func (x *SignInUserResponse) GetAccessToken() string

func (*SignInUserResponse) GetRefreshToken

func (x *SignInUserResponse) GetRefreshToken() string

func (*SignInUserResponse) ProtoMessage

func (*SignInUserResponse) ProtoMessage()

func (*SignInUserResponse) ProtoReflect

func (x *SignInUserResponse) ProtoReflect() protoreflect.Message

func (*SignInUserResponse) Reset

func (x *SignInUserResponse) Reset()

func (*SignInUserResponse) String

func (x *SignInUserResponse) String() string

type SignUpUserInput

type SignUpUserInput 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"`
	PasswordConfirm string `protobuf:"bytes,3,opt,name=passwordConfirm,proto3" json:"passwordConfirm,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpUserInput) Descriptor deprecated

func (*SignUpUserInput) Descriptor() ([]byte, []int)

Deprecated: Use SignUpUserInput.ProtoReflect.Descriptor instead.

func (*SignUpUserInput) GetEmail

func (x *SignUpUserInput) GetEmail() string

func (*SignUpUserInput) GetPassword

func (x *SignUpUserInput) GetPassword() string

func (*SignUpUserInput) GetPasswordConfirm

func (x *SignUpUserInput) GetPasswordConfirm() string

func (*SignUpUserInput) ProtoMessage

func (*SignUpUserInput) ProtoMessage()

func (*SignUpUserInput) ProtoReflect

func (x *SignUpUserInput) ProtoReflect() protoreflect.Message

func (*SignUpUserInput) Reset

func (x *SignUpUserInput) Reset()

func (*SignUpUserInput) String

func (x *SignUpUserInput) String() string

type SignUpUserResponse

type SignUpUserResponse struct {
	Id                int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username          string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	VerificationToken string               `protobuf:"bytes,3,opt,name=verification_token,json=verificationToken,proto3" json:"verification_token,omitempty"`
	CreatedAt         *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*SignUpUserResponse) Descriptor deprecated

func (*SignUpUserResponse) Descriptor() ([]byte, []int)

Deprecated: Use SignUpUserResponse.ProtoReflect.Descriptor instead.

func (*SignUpUserResponse) GetCreatedAt

func (x *SignUpUserResponse) GetCreatedAt() *timestamp.Timestamp

func (*SignUpUserResponse) GetId

func (x *SignUpUserResponse) GetId() int64

func (*SignUpUserResponse) GetUsername

func (x *SignUpUserResponse) GetUsername() string

func (*SignUpUserResponse) GetVerificationToken

func (x *SignUpUserResponse) GetVerificationToken() string

func (*SignUpUserResponse) ProtoMessage

func (*SignUpUserResponse) ProtoMessage()

func (*SignUpUserResponse) ProtoReflect

func (x *SignUpUserResponse) ProtoReflect() protoreflect.Message

func (*SignUpUserResponse) Reset

func (x *SignUpUserResponse) Reset()

func (*SignUpUserResponse) String

func (x *SignUpUserResponse) String() string

type StringValue

type StringValue struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*StringValue) Descriptor deprecated

func (*StringValue) Descriptor() ([]byte, []int)

Deprecated: Use StringValue.ProtoReflect.Descriptor instead.

func (*StringValue) GetValue

func (x *StringValue) GetValue() string

func (*StringValue) ProtoMessage

func (*StringValue) ProtoMessage()

func (*StringValue) ProtoReflect

func (x *StringValue) ProtoReflect() protoreflect.Message

func (*StringValue) Reset

func (x *StringValue) Reset()

func (*StringValue) String

func (x *StringValue) String() string

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) GetVerificationKey

func (UnimplementedAuthServiceServer) SignInUser

func (UnimplementedAuthServiceServer) SignUpUser

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ChangePassword

func (UnimplementedUserServiceServer) CheckUserExists

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) GetUserByID

func (UnimplementedUserServiceServer) GetUserDetails

func (UnimplementedUserServiceServer) VerifyUser

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 UnsafeUserServiceServer

type UnsafeUserServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.

type User

type User struct {
	Id        int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Username  string               `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	Email     string               `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

func (*User) Descriptor() ([]byte, []int)

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetCreatedAt

func (x *User) GetCreatedAt() *timestamp.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() int64

func (*User) GetUsername

func (x *User) GetUsername() string

func (*User) ProtoMessage

func (*User) ProtoMessage()

func (*User) ProtoReflect

func (x *User) ProtoReflect() protoreflect.Message

func (*User) Reset

func (x *User) Reset()

func (*User) String

func (x *User) String() string

type UserDetails

type UserDetails struct {
	Id        int64                `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Username  string               `protobuf:"bytes,2,opt,name=Username,proto3" json:"Username,omitempty"`
	Firstname string               `protobuf:"bytes,3,opt,name=Firstname,proto3" json:"Firstname,omitempty"`
	Lastname  string               `protobuf:"bytes,4,opt,name=Lastname,proto3" json:"Lastname,omitempty"`
	Email     string               `protobuf:"bytes,5,opt,name=Email,proto3" json:"Email,omitempty"`
	Password  string               `protobuf:"bytes,6,opt,name=Password,proto3" json:"Password,omitempty"`
	RolesJson string               `protobuf:"bytes,7,opt,name=RolesJson,proto3" json:"RolesJson,omitempty"`
	Roles     string               `protobuf:"bytes,8,opt,name=Roles,proto3" json:"Roles,omitempty"`
	Role      string               `protobuf:"bytes,9,opt,name=Role,proto3" json:"Role,omitempty"`
	Verified  bool                 `protobuf:"varint,10,opt,name=Verified,proto3" json:"Verified,omitempty"`
	Active    bool                 `protobuf:"varint,11,opt,name=Active,proto3" json:"Active,omitempty"`
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,12,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	LastLogin *timestamp.Timestamp `protobuf:"bytes,13,opt,name=LastLogin,proto3" json:"LastLogin,omitempty"`
	// contains filtered or unexported fields
}

func (*UserDetails) Descriptor deprecated

func (*UserDetails) Descriptor() ([]byte, []int)

Deprecated: Use UserDetails.ProtoReflect.Descriptor instead.

func (*UserDetails) GetActive

func (x *UserDetails) GetActive() bool

func (*UserDetails) GetCreatedAt

func (x *UserDetails) GetCreatedAt() *timestamp.Timestamp

func (*UserDetails) GetEmail

func (x *UserDetails) GetEmail() string

func (*UserDetails) GetFirstname

func (x *UserDetails) GetFirstname() string

func (*UserDetails) GetId

func (x *UserDetails) GetId() int64

func (*UserDetails) GetLastLogin

func (x *UserDetails) GetLastLogin() *timestamp.Timestamp

func (*UserDetails) GetLastname

func (x *UserDetails) GetLastname() string

func (*UserDetails) GetPassword

func (x *UserDetails) GetPassword() string

func (*UserDetails) GetRole

func (x *UserDetails) GetRole() string

func (*UserDetails) GetRoles

func (x *UserDetails) GetRoles() string

func (*UserDetails) GetRolesJson

func (x *UserDetails) GetRolesJson() string

func (*UserDetails) GetUsername

func (x *UserDetails) GetUsername() string

func (*UserDetails) GetVerified

func (x *UserDetails) GetVerified() bool

func (*UserDetails) ProtoMessage

func (*UserDetails) ProtoMessage()

func (*UserDetails) ProtoReflect

func (x *UserDetails) ProtoReflect() protoreflect.Message

func (*UserDetails) Reset

func (x *UserDetails) Reset()

func (*UserDetails) String

func (x *UserDetails) String() string

type UserResponse

type UserResponse struct {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*UserResponse) Descriptor deprecated

func (*UserResponse) Descriptor() ([]byte, []int)

Deprecated: Use UserResponse.ProtoReflect.Descriptor instead.

func (*UserResponse) GetUser

func (x *UserResponse) GetUser() *User

func (*UserResponse) ProtoMessage

func (*UserResponse) ProtoMessage()

func (*UserResponse) ProtoReflect

func (x *UserResponse) ProtoReflect() protoreflect.Message

func (*UserResponse) Reset

func (x *UserResponse) Reset()

func (*UserResponse) String

func (x *UserResponse) String() string

type UserServiceClient

type UserServiceClient interface {
	CheckUserExists(ctx context.Context, in *StringValue, opts ...grpc.CallOption) (*BoolValue, error)
	GetUserById(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserDetails, error)
	GetUserDetails(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*UserDetails, error)
	VerifyUser(ctx context.Context, in *VerifyUserRequest, opts ...grpc.CallOption) (*VerificationResponse, error)
	ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
	GetUser(ctx context.Context, in *GetUserSignInRequest, opts ...grpc.CallOption) (*UserDetails, error)
}

UserServiceClient is the client API for UserService 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.

type UserServiceServer

type UserServiceServer interface {
	CheckUserExists(context.Context, *StringValue) (*BoolValue, error)
	GetUserByID(context.Context, *GetUserRequest) (*UserDetails, error)
	GetUserDetails(context.Context, *GetUserRequest) (*UserDetails, error)
	VerifyUser(context.Context, *VerifyUserRequest) (*VerificationResponse, error)
	ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
	GetUser(context.Context, *GetUserSignInRequest) (*UserDetails, error)
	// contains filtered or unexported methods
}

UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility

type VerificationCodeRequest

type VerificationCodeRequest struct {
	Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"`
	// contains filtered or unexported fields
}

func (*VerificationCodeRequest) Descriptor deprecated

func (*VerificationCodeRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*VerificationCodeRequest) GetEmail

func (x *VerificationCodeRequest) GetEmail() string

func (*VerificationCodeRequest) ProtoMessage

func (*VerificationCodeRequest) ProtoMessage()

func (*VerificationCodeRequest) ProtoReflect

func (x *VerificationCodeRequest) ProtoReflect() protoreflect.Message

func (*VerificationCodeRequest) Reset

func (x *VerificationCodeRequest) Reset()

func (*VerificationCodeRequest) String

func (x *VerificationCodeRequest) String() string

type VerificationCodeResponse

type VerificationCodeResponse struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*VerificationCodeResponse) Descriptor deprecated

func (*VerificationCodeResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerificationCodeResponse.ProtoReflect.Descriptor instead.

func (*VerificationCodeResponse) GetCode

func (x *VerificationCodeResponse) GetCode() string

func (*VerificationCodeResponse) ProtoMessage

func (*VerificationCodeResponse) ProtoMessage()

func (*VerificationCodeResponse) ProtoReflect

func (x *VerificationCodeResponse) ProtoReflect() protoreflect.Message

func (*VerificationCodeResponse) Reset

func (x *VerificationCodeResponse) Reset()

func (*VerificationCodeResponse) String

func (x *VerificationCodeResponse) String() string

type VerificationResponse

type VerificationResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*VerificationResponse) Descriptor deprecated

func (*VerificationResponse) Descriptor() ([]byte, []int)

Deprecated: Use VerificationResponse.ProtoReflect.Descriptor instead.

func (*VerificationResponse) GetSuccess

func (x *VerificationResponse) GetSuccess() bool

func (*VerificationResponse) ProtoMessage

func (*VerificationResponse) ProtoMessage()

func (*VerificationResponse) ProtoReflect

func (x *VerificationResponse) ProtoReflect() protoreflect.Message

func (*VerificationResponse) Reset

func (x *VerificationResponse) Reset()

func (*VerificationResponse) String

func (x *VerificationResponse) String() string

type VerifyUserRequest

type VerifyUserRequest struct {
	Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyUserRequest) Descriptor deprecated

func (*VerifyUserRequest) Descriptor() ([]byte, []int)

Deprecated: Use VerifyUserRequest.ProtoReflect.Descriptor instead.

func (*VerifyUserRequest) GetCode

func (x *VerifyUserRequest) GetCode() string

func (*VerifyUserRequest) ProtoMessage

func (*VerifyUserRequest) ProtoMessage()

func (*VerifyUserRequest) ProtoReflect

func (x *VerifyUserRequest) ProtoReflect() protoreflect.Message

func (*VerifyUserRequest) Reset

func (x *VerifyUserRequest) Reset()

func (*VerifyUserRequest) String

func (x *VerifyUserRequest) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL