uspbv1

package
v0.0.0-...-3d786a4 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Overview

Package uspbv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	UserService_CreateUser_FullMethodName     = "/v1.uspbv1.UserService/CreateUser"
	UserService_LoginUser_FullMethodName      = "/v1.uspbv1.UserService/LoginUser"
	UserService_UpdateUser_FullMethodName     = "/v1.uspbv1.UserService/UpdateUser"
	UserService_VerifyEmail_FullMethodName    = "/v1.uspbv1.UserService/VerifyEmail"
	UserService_RenewTokens_FullMethodName    = "/v1.uspbv1.UserService/RenewTokens"
	UserService_GetUserDevices_FullMethodName = "/v1.uspbv1.UserService/GetUserDevices"
)

Variables

View Source
var File_v1_uspb_msg_device_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_msg_user_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_create_user_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_get_user_devices_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_login_user_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_renew_tokens_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_update_user_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_rpc_verify_email_proto protoreflect.FileDescriptor
View Source
var File_v1_uspb_service_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "v1.uspbv1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateUser",
			Handler:    _UserService_CreateUser_Handler,
		},
		{
			MethodName: "LoginUser",
			Handler:    _UserService_LoginUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "VerifyEmail",
			Handler:    _UserService_VerifyEmail_Handler,
		},
		{
			MethodName: "RenewTokens",
			Handler:    _UserService_RenewTokens_Handler,
		},
		{
			MethodName: "GetUserDevices",
			Handler:    _UserService_GetUserDevices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "v1/uspb/service_user.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 RegisterUserServiceHandler

func RegisterUserServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterUserServiceHandler registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterUserServiceHandlerClient

func RegisterUserServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserServiceClient) error

RegisterUserServiceHandlerClient registers the http handlers for service UserService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "UserServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "UserServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "UserServiceClient" to call the correct interceptors.

func RegisterUserServiceHandlerFromEndpoint

func RegisterUserServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterUserServiceHandlerFromEndpoint is same as RegisterUserServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterUserServiceHandlerServer

func RegisterUserServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserServiceServer) error

RegisterUserServiceHandlerServer registers the http handlers for service UserService to "mux". UnaryRPC :call UserServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterUserServiceHandlerFromEndpoint instead.

func RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type CreateUserRequest

type CreateUserRequest struct {
	Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FullName string `protobuf:"bytes,2,opt,name=fullName,proto3" json:"fullName,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 (*CreateUserRequest) Descriptor deprecated

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

Deprecated: Use CreateUserRequest.ProtoReflect.Descriptor instead.

func (*CreateUserRequest) GetEmail

func (x *CreateUserRequest) GetEmail() string

func (*CreateUserRequest) GetFullName

func (x *CreateUserRequest) GetFullName() string

func (*CreateUserRequest) GetPassword

func (x *CreateUserRequest) GetPassword() string

func (*CreateUserRequest) GetUsername

func (x *CreateUserRequest) GetUsername() string

func (*CreateUserRequest) ProtoMessage

func (*CreateUserRequest) ProtoMessage()

func (*CreateUserRequest) ProtoReflect

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

func (*CreateUserRequest) Reset

func (x *CreateUserRequest) Reset()

func (*CreateUserRequest) String

func (x *CreateUserRequest) String() string

type CreateUserResponse

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

func (*CreateUserResponse) Descriptor deprecated

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

Deprecated: Use CreateUserResponse.ProtoReflect.Descriptor instead.

func (*CreateUserResponse) GetUser

func (x *CreateUserResponse) GetUser() *User

func (*CreateUserResponse) ProtoMessage

func (*CreateUserResponse) ProtoMessage()

func (*CreateUserResponse) ProtoReflect

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

func (*CreateUserResponse) Reset

func (x *CreateUserResponse) Reset()

func (*CreateUserResponse) String

func (x *CreateUserResponse) String() string

type Device

type Device struct {
	ID              string                 `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	OperatingSystem string                 `protobuf:"bytes,2,opt,name=operatingSystem,proto3" json:"operatingSystem,omitempty"`
	MacAddress      string                 `protobuf:"bytes,3,opt,name=macAddress,proto3" json:"macAddress,omitempty"`
	ClientIP        string                 `protobuf:"bytes,4,opt,name=clientIP,proto3" json:"clientIP,omitempty"`
	UserAgent       string                 `protobuf:"bytes,5,opt,name=userAgent,proto3" json:"userAgent,omitempty"`
	IsBanned        bool                   `protobuf:"varint,6,opt,name=isBanned,proto3" json:"isBanned,omitempty"`
	CreatedAt       *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=createdAt,proto3" json:"createdAt,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetClientIP

func (x *Device) GetClientIP() string

func (*Device) GetCreatedAt

func (x *Device) GetCreatedAt() *timestamppb.Timestamp

func (*Device) GetID

func (x *Device) GetID() string

func (*Device) GetIsBanned

func (x *Device) GetIsBanned() bool

func (*Device) GetMacAddress

func (x *Device) GetMacAddress() string

func (*Device) GetOperatingSystem

func (x *Device) GetOperatingSystem() string

func (*Device) GetUserAgent

func (x *Device) GetUserAgent() string

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type GetUserDevicesRequest

type GetUserDevicesRequest struct {
	UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDevicesRequest) Descriptor deprecated

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

Deprecated: Use GetUserDevicesRequest.ProtoReflect.Descriptor instead.

func (*GetUserDevicesRequest) GetUserID

func (x *GetUserDevicesRequest) GetUserID() int64

func (*GetUserDevicesRequest) ProtoMessage

func (*GetUserDevicesRequest) ProtoMessage()

func (*GetUserDevicesRequest) ProtoReflect

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

func (*GetUserDevicesRequest) Reset

func (x *GetUserDevicesRequest) Reset()

func (*GetUserDevicesRequest) String

func (x *GetUserDevicesRequest) String() string

type GetUserDevicesResponse

type GetUserDevicesResponse struct {
	Devices []*Device `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserDevicesResponse) Descriptor deprecated

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

Deprecated: Use GetUserDevicesResponse.ProtoReflect.Descriptor instead.

func (*GetUserDevicesResponse) GetDevices

func (x *GetUserDevicesResponse) GetDevices() []*Device

func (*GetUserDevicesResponse) ProtoMessage

func (*GetUserDevicesResponse) ProtoMessage()

func (*GetUserDevicesResponse) ProtoReflect

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

func (*GetUserDevicesResponse) Reset

func (x *GetUserDevicesResponse) Reset()

func (*GetUserDevicesResponse) String

func (x *GetUserDevicesResponse) String() string

type LoginUserRequest

type LoginUserRequest struct {
	Username        string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	Password        string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	DeviceName      string `protobuf:"bytes,3,opt,name=deviceName,proto3" json:"deviceName,omitempty"`
	DeviceHash      string `protobuf:"bytes,4,opt,name=deviceHash,proto3" json:"deviceHash,omitempty"`
	OperatingSystem string `protobuf:"bytes,5,opt,name=operatingSystem,proto3" json:"operatingSystem,omitempty"`
	MacAddress      string `protobuf:"bytes,6,opt,name=macAddress,proto3" json:"macAddress,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginUserRequest) Descriptor deprecated

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

Deprecated: Use LoginUserRequest.ProtoReflect.Descriptor instead.

func (*LoginUserRequest) GetDeviceHash

func (x *LoginUserRequest) GetDeviceHash() string

func (*LoginUserRequest) GetDeviceName

func (x *LoginUserRequest) GetDeviceName() string

func (*LoginUserRequest) GetMacAddress

func (x *LoginUserRequest) GetMacAddress() string

func (*LoginUserRequest) GetOperatingSystem

func (x *LoginUserRequest) GetOperatingSystem() string

func (*LoginUserRequest) GetPassword

func (x *LoginUserRequest) GetPassword() string

func (*LoginUserRequest) GetUsername

func (x *LoginUserRequest) GetUsername() string

func (*LoginUserRequest) ProtoMessage

func (*LoginUserRequest) ProtoMessage()

func (*LoginUserRequest) ProtoReflect

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

func (*LoginUserRequest) Reset

func (x *LoginUserRequest) Reset()

func (*LoginUserRequest) String

func (x *LoginUserRequest) String() string

type LoginUserResponse

type LoginUserResponse struct {
	User                  *User                  `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	SessionID             string                 `protobuf:"bytes,2,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	AccessToken           string                 `protobuf:"bytes,3,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	AccessTokenExpiresAt  *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=accessTokenExpiresAt,proto3" json:"accessTokenExpiresAt,omitempty"`
	RefreshToken          string                 `protobuf:"bytes,5,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	RefreshTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=refreshTokenExpiresAt,proto3" json:"refreshTokenExpiresAt,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginUserResponse) Descriptor deprecated

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

Deprecated: Use LoginUserResponse.ProtoReflect.Descriptor instead.

func (*LoginUserResponse) GetAccessToken

func (x *LoginUserResponse) GetAccessToken() string

func (*LoginUserResponse) GetAccessTokenExpiresAt

func (x *LoginUserResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp

func (*LoginUserResponse) GetRefreshToken

func (x *LoginUserResponse) GetRefreshToken() string

func (*LoginUserResponse) GetRefreshTokenExpiresAt

func (x *LoginUserResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp

func (*LoginUserResponse) GetSessionID

func (x *LoginUserResponse) GetSessionID() string

func (*LoginUserResponse) GetUser

func (x *LoginUserResponse) GetUser() *User

func (*LoginUserResponse) ProtoMessage

func (*LoginUserResponse) ProtoMessage()

func (*LoginUserResponse) ProtoReflect

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

func (*LoginUserResponse) Reset

func (x *LoginUserResponse) Reset()

func (*LoginUserResponse) String

func (x *LoginUserResponse) String() string

type RenewTokensRequest

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

func (*RenewTokensRequest) Descriptor deprecated

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

Deprecated: Use RenewTokensRequest.ProtoReflect.Descriptor instead.

func (*RenewTokensRequest) GetRefreshToken

func (x *RenewTokensRequest) GetRefreshToken() string

func (*RenewTokensRequest) ProtoMessage

func (*RenewTokensRequest) ProtoMessage()

func (*RenewTokensRequest) ProtoReflect

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

func (*RenewTokensRequest) Reset

func (x *RenewTokensRequest) Reset()

func (*RenewTokensRequest) String

func (x *RenewTokensRequest) String() string

type RenewTokensResponse

type RenewTokensResponse struct {
	SessionID             string                 `protobuf:"bytes,1,opt,name=sessionID,proto3" json:"sessionID,omitempty"`
	AccessToken           string                 `protobuf:"bytes,2,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
	AccessTokenExpiresAt  *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=accessTokenExpiresAt,proto3" json:"accessTokenExpiresAt,omitempty"`
	RefreshToken          string                 `protobuf:"bytes,4,opt,name=refreshToken,proto3" json:"refreshToken,omitempty"`
	RefreshTokenExpiresAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=refreshTokenExpiresAt,proto3" json:"refreshTokenExpiresAt,omitempty"`
	// contains filtered or unexported fields
}

func (*RenewTokensResponse) Descriptor deprecated

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

Deprecated: Use RenewTokensResponse.ProtoReflect.Descriptor instead.

func (*RenewTokensResponse) GetAccessToken

func (x *RenewTokensResponse) GetAccessToken() string

func (*RenewTokensResponse) GetAccessTokenExpiresAt

func (x *RenewTokensResponse) GetAccessTokenExpiresAt() *timestamppb.Timestamp

func (*RenewTokensResponse) GetRefreshToken

func (x *RenewTokensResponse) GetRefreshToken() string

func (*RenewTokensResponse) GetRefreshTokenExpiresAt

func (x *RenewTokensResponse) GetRefreshTokenExpiresAt() *timestamppb.Timestamp

func (*RenewTokensResponse) GetSessionID

func (x *RenewTokensResponse) GetSessionID() string

func (*RenewTokensResponse) ProtoMessage

func (*RenewTokensResponse) ProtoMessage()

func (*RenewTokensResponse) ProtoReflect

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

func (*RenewTokensResponse) Reset

func (x *RenewTokensResponse) Reset()

func (*RenewTokensResponse) String

func (x *RenewTokensResponse) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) CreateUser

func (UnimplementedUserServiceServer) GetUserDevices

func (UnimplementedUserServiceServer) LoginUser

func (UnimplementedUserServiceServer) RenewTokens

func (UnimplementedUserServiceServer) UpdateUser

func (UnimplementedUserServiceServer) VerifyEmail

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 UpdateUserRequest

type UpdateUserRequest struct {
	Username string  `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
	FullName *string `protobuf:"bytes,2,opt,name=fullName,proto3,oneof" json:"fullName,omitempty"`
	Email    *string `protobuf:"bytes,3,opt,name=email,proto3,oneof" json:"email,omitempty"`
	Password *string `protobuf:"bytes,4,opt,name=password,proto3,oneof" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetEmail

func (x *UpdateUserRequest) GetEmail() string

func (*UpdateUserRequest) GetFullName

func (x *UpdateUserRequest) GetFullName() string

func (*UpdateUserRequest) GetPassword

func (x *UpdateUserRequest) GetPassword() string

func (*UpdateUserRequest) GetUsername

func (x *UpdateUserRequest) GetUsername() string

func (*UpdateUserRequest) ProtoMessage

func (*UpdateUserRequest) ProtoMessage()

func (*UpdateUserRequest) ProtoReflect

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

func (*UpdateUserRequest) Reset

func (x *UpdateUserRequest) Reset()

func (*UpdateUserRequest) String

func (x *UpdateUserRequest) String() string

type UpdateUserResponse

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

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

func (*UpdateUserResponse) GetUser

func (x *UpdateUserResponse) GetUser() *User

func (*UpdateUserResponse) ProtoMessage

func (*UpdateUserResponse) ProtoMessage()

func (*UpdateUserResponse) ProtoReflect

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

func (*UpdateUserResponse) Reset

func (x *UpdateUserResponse) Reset()

func (*UpdateUserResponse) String

func (x *UpdateUserResponse) String() string

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"`
	FullName          string                 `protobuf:"bytes,3,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"`
	Email             string                 `protobuf:"bytes,4,opt,name=email,proto3" json:"email,omitempty"`
	PasswordChangedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=passwordChangedAt,proto3" json:"passwordChangedAt,omitempty"`
	CreatedAt         *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=createdAt,proto3" json:"createdAt,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() *timestamppb.Timestamp

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetFullName

func (x *User) GetFullName() string

func (*User) GetID

func (x *User) GetID() int64

func (*User) GetPasswordChangedAt

func (x *User) GetPasswordChangedAt() *timestamppb.Timestamp

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 UserServiceClient

type UserServiceClient interface {
	CreateUser(ctx context.Context, in *CreateUserRequest, opts ...grpc.CallOption) (*CreateUserResponse, error)
	LoginUser(ctx context.Context, in *LoginUserRequest, opts ...grpc.CallOption) (*LoginUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	VerifyEmail(ctx context.Context, in *VerifyEmailRequest, opts ...grpc.CallOption) (*VerifyEmailResponse, error)
	RenewTokens(ctx context.Context, in *RenewTokensRequest, opts ...grpc.CallOption) (*RenewTokensResponse, error)
	GetUserDevices(ctx context.Context, in *GetUserDevicesRequest, opts ...grpc.CallOption) (*GetUserDevicesResponse, 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 {
	CreateUser(context.Context, *CreateUserRequest) (*CreateUserResponse, error)
	LoginUser(context.Context, *LoginUserRequest) (*LoginUserResponse, error)
	UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserResponse, error)
	VerifyEmail(context.Context, *VerifyEmailRequest) (*VerifyEmailResponse, error)
	RenewTokens(context.Context, *RenewTokensRequest) (*RenewTokensResponse, error)
	GetUserDevices(context.Context, *GetUserDevicesRequest) (*GetUserDevicesResponse, error)
	// contains filtered or unexported methods
}

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

type VerifyEmailRequest

type VerifyEmailRequest struct {
	EmailID    int64  `protobuf:"varint,1,opt,name=emailID,proto3" json:"emailID,omitempty"`
	SecretCode string `protobuf:"bytes,2,opt,name=secretCode,proto3" json:"secretCode,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyEmailRequest) Descriptor deprecated

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

Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.

func (*VerifyEmailRequest) GetEmailID

func (x *VerifyEmailRequest) GetEmailID() int64

func (*VerifyEmailRequest) GetSecretCode

func (x *VerifyEmailRequest) GetSecretCode() string

func (*VerifyEmailRequest) ProtoMessage

func (*VerifyEmailRequest) ProtoMessage()

func (*VerifyEmailRequest) ProtoReflect

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

func (*VerifyEmailRequest) Reset

func (x *VerifyEmailRequest) Reset()

func (*VerifyEmailRequest) String

func (x *VerifyEmailRequest) String() string

type VerifyEmailResponse

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

func (*VerifyEmailResponse) Descriptor deprecated

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

Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.

func (*VerifyEmailResponse) GetIsVerified

func (x *VerifyEmailResponse) GetIsVerified() bool

func (*VerifyEmailResponse) ProtoMessage

func (*VerifyEmailResponse) ProtoMessage()

func (*VerifyEmailResponse) ProtoReflect

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

func (*VerifyEmailResponse) Reset

func (x *VerifyEmailResponse) Reset()

func (*VerifyEmailResponse) String

func (x *VerifyEmailResponse) String() string

Jump to

Keyboard shortcuts

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