userpb

package
v0.0.0-...-16d19c9 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protobuf_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "userpb.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetProfile",
			Handler:    _UserService_GetProfile_Handler,
		},
		{
			MethodName: "SendOtpEmail",
			Handler:    _UserService_SendOtpEmail_Handler,
		},
		{
			MethodName: "VerifyOtp",
			Handler:    _UserService_VerifyOtp_Handler,
		},
		{
			MethodName: "RefreshTokens",
			Handler:    _UserService_RefreshTokens_Handler,
		},
		{
			MethodName: "Logout",
			Handler:    _UserService_Logout_Handler,
		},
		{
			MethodName: "ChangeUsername",
			Handler:    _UserService_ChangeUsername_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "protobuf/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 RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type ChangeUsernameRequest

type ChangeUsernameRequest struct {
	Id      string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	NewName string `protobuf:"bytes,2,opt,name=newName,proto3" json:"newName,omitempty"`
	// contains filtered or unexported fields
}

ChangeUsername

func (*ChangeUsernameRequest) Descriptor deprecated

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

Deprecated: Use ChangeUsernameRequest.ProtoReflect.Descriptor instead.

func (*ChangeUsernameRequest) GetId

func (x *ChangeUsernameRequest) GetId() string

func (*ChangeUsernameRequest) GetNewName

func (x *ChangeUsernameRequest) GetNewName() string

func (*ChangeUsernameRequest) ProtoMessage

func (*ChangeUsernameRequest) ProtoMessage()

func (*ChangeUsernameRequest) ProtoReflect

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

func (*ChangeUsernameRequest) Reset

func (x *ChangeUsernameRequest) Reset()

func (*ChangeUsernameRequest) String

func (x *ChangeUsernameRequest) String() string

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

Empty

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type GetProfileRequest

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

GetProfile

func (*GetProfileRequest) Descriptor deprecated

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

Deprecated: Use GetProfileRequest.ProtoReflect.Descriptor instead.

func (*GetProfileRequest) GetId

func (x *GetProfileRequest) GetId() string

func (*GetProfileRequest) ProtoMessage

func (*GetProfileRequest) ProtoMessage()

func (*GetProfileRequest) ProtoReflect

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

func (*GetProfileRequest) Reset

func (x *GetProfileRequest) Reset()

func (*GetProfileRequest) String

func (x *GetProfileRequest) String() string

type GetProfileResponse

type GetProfileResponse struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Date string `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	// contains filtered or unexported fields
}

func (*GetProfileResponse) Descriptor deprecated

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

Deprecated: Use GetProfileResponse.ProtoReflect.Descriptor instead.

func (*GetProfileResponse) GetDate

func (x *GetProfileResponse) GetDate() string

func (*GetProfileResponse) GetName

func (x *GetProfileResponse) GetName() string

func (*GetProfileResponse) ProtoMessage

func (*GetProfileResponse) ProtoMessage()

func (*GetProfileResponse) ProtoReflect

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

func (*GetProfileResponse) Reset

func (x *GetProfileResponse) Reset()

func (*GetProfileResponse) String

func (x *GetProfileResponse) String() string

type RefreshTokenRequest

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

RefreshTokens + Logout

func (*RefreshTokenRequest) Descriptor deprecated

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

Deprecated: Use RefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*RefreshTokenRequest) GetRefreshUUID

func (x *RefreshTokenRequest) GetRefreshUUID() 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 SendOtpEmailRequest

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

SendOTPEmail

func (*SendOtpEmailRequest) Descriptor deprecated

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

Deprecated: Use SendOtpEmailRequest.ProtoReflect.Descriptor instead.

func (*SendOtpEmailRequest) GetLogin

func (x *SendOtpEmailRequest) GetLogin() string

func (*SendOtpEmailRequest) ProtoMessage

func (*SendOtpEmailRequest) ProtoMessage()

func (*SendOtpEmailRequest) ProtoReflect

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

func (*SendOtpEmailRequest) Reset

func (x *SendOtpEmailRequest) Reset()

func (*SendOtpEmailRequest) String

func (x *SendOtpEmailRequest) String() string

type SendOtpEmailResponse

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

func (*SendOtpEmailResponse) Descriptor deprecated

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

Deprecated: Use SendOtpEmailResponse.ProtoReflect.Descriptor instead.

func (*SendOtpEmailResponse) GetEmail

func (x *SendOtpEmailResponse) GetEmail() string

func (*SendOtpEmailResponse) ProtoMessage

func (*SendOtpEmailResponse) ProtoMessage()

func (*SendOtpEmailResponse) ProtoReflect

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

func (*SendOtpEmailResponse) Reset

func (x *SendOtpEmailResponse) Reset()

func (*SendOtpEmailResponse) String

func (x *SendOtpEmailResponse) String() string

type TokensResponse

type TokensResponse struct {
	RefreshUUID string `protobuf:"bytes,1,opt,name=refreshUUID,proto3" json:"refreshUUID,omitempty"`
	AccessJWT   string `protobuf:"bytes,2,opt,name=accessJWT,proto3" json:"accessJWT,omitempty"`
	// contains filtered or unexported fields
}

Tokens

func (*TokensResponse) Descriptor deprecated

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

Deprecated: Use TokensResponse.ProtoReflect.Descriptor instead.

func (*TokensResponse) GetAccessJWT

func (x *TokensResponse) GetAccessJWT() string

func (*TokensResponse) GetRefreshUUID

func (x *TokensResponse) GetRefreshUUID() string

func (*TokensResponse) ProtoMessage

func (*TokensResponse) ProtoMessage()

func (*TokensResponse) ProtoReflect

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

func (*TokensResponse) Reset

func (x *TokensResponse) Reset()

func (*TokensResponse) String

func (x *TokensResponse) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) ChangeUsername

func (UnimplementedUserServiceServer) GetProfile

func (UnimplementedUserServiceServer) Logout

func (UnimplementedUserServiceServer) RefreshTokens

func (UnimplementedUserServiceServer) SendOtpEmail

func (UnimplementedUserServiceServer) VerifyOtp

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 UserServiceClient

type UserServiceClient interface {
	// Profile
	GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*GetProfileResponse, error)
	// Auth
	SendOtpEmail(ctx context.Context, in *SendOtpEmailRequest, opts ...grpc.CallOption) (*SendOtpEmailResponse, error)
	VerifyOtp(ctx context.Context, in *VerifyOtpRequest, opts ...grpc.CallOption) (*TokensResponse, error)
	RefreshTokens(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*TokensResponse, error)
	Logout(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*Empty, error)
	ChangeUsername(ctx context.Context, in *ChangeUsernameRequest, opts ...grpc.CallOption) (*Empty, 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 {
	// Profile
	GetProfile(context.Context, *GetProfileRequest) (*GetProfileResponse, error)
	// Auth
	SendOtpEmail(context.Context, *SendOtpEmailRequest) (*SendOtpEmailResponse, error)
	VerifyOtp(context.Context, *VerifyOtpRequest) (*TokensResponse, error)
	RefreshTokens(context.Context, *RefreshTokenRequest) (*TokensResponse, error)
	Logout(context.Context, *RefreshTokenRequest) (*Empty, error)
	ChangeUsername(context.Context, *ChangeUsernameRequest) (*Empty, error)
	// contains filtered or unexported methods
}

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

type VerifyOtpRequest

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

VerifyOtp

func (*VerifyOtpRequest) Descriptor deprecated

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

Deprecated: Use VerifyOtpRequest.ProtoReflect.Descriptor instead.

func (*VerifyOtpRequest) GetEmail

func (x *VerifyOtpRequest) GetEmail() string

func (*VerifyOtpRequest) GetOtp

func (x *VerifyOtpRequest) GetOtp() string

func (*VerifyOtpRequest) ProtoMessage

func (*VerifyOtpRequest) ProtoMessage()

func (*VerifyOtpRequest) ProtoReflect

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

func (*VerifyOtpRequest) Reset

func (x *VerifyOtpRequest) Reset()

func (*VerifyOtpRequest) String

func (x *VerifyOtpRequest) String() string

Jump to

Keyboard shortcuts

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