v1

package
v0.3.44 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tadpole_user_service_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "tadpole.user_service.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignIn",
			Handler:    _UserService_SignIn_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _UserService_SignOut_Handler,
		},
		{
			MethodName: "VerifyEmail",
			Handler:    _UserService_VerifyEmail_Handler,
		},
		{
			MethodName: "RequestVerificationCode",
			Handler:    _UserService_RequestVerificationCode_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "GetRefreshToken",
			Handler:    _UserService_GetRefreshToken_Handler,
		},
		{
			MethodName: "ResetPassword",
			Handler:    _UserService_ResetPassword_Handler,
		},
		{
			MethodName: "UpdatePassword",
			Handler:    _UserService_UpdatePassword_Handler,
		},
		{
			MethodName: "PurgeUser",
			Handler:    _UserService_PurgeUser_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "tadpole/user-service/v1/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 GetRefreshTokenRequest added in v0.3.31

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

func (*GetRefreshTokenRequest) Descriptor deprecated added in v0.3.31

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

Deprecated: Use GetRefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*GetRefreshTokenRequest) GetAccessToken added in v0.3.31

func (x *GetRefreshTokenRequest) GetAccessToken() string

func (*GetRefreshTokenRequest) ProtoMessage added in v0.3.31

func (*GetRefreshTokenRequest) ProtoMessage()

func (*GetRefreshTokenRequest) ProtoReflect added in v0.3.31

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

func (*GetRefreshTokenRequest) Reset added in v0.3.31

func (x *GetRefreshTokenRequest) Reset()

func (*GetRefreshTokenRequest) String added in v0.3.31

func (x *GetRefreshTokenRequest) String() string

type GetRefreshTokenResponse added in v0.3.31

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

func (*GetRefreshTokenResponse) Descriptor deprecated added in v0.3.31

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

Deprecated: Use GetRefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*GetRefreshTokenResponse) GetRefreshToken added in v0.3.31

func (x *GetRefreshTokenResponse) GetRefreshToken() string

func (*GetRefreshTokenResponse) ProtoMessage added in v0.3.31

func (*GetRefreshTokenResponse) ProtoMessage()

func (*GetRefreshTokenResponse) ProtoReflect added in v0.3.31

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

func (*GetRefreshTokenResponse) Reset added in v0.3.31

func (x *GetRefreshTokenResponse) Reset()

func (*GetRefreshTokenResponse) String added in v0.3.31

func (x *GetRefreshTokenResponse) String() string

type GetUserRequest

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

func (*GetUserRequest) Descriptor deprecated

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

Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.

func (*GetUserRequest) GetId

func (x *GetUserRequest) GetId() string

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 {
	User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// contains filtered or unexported fields
}

func (*GetUserResponse) Descriptor deprecated

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

Deprecated: Use GetUserResponse.ProtoReflect.Descriptor instead.

func (*GetUserResponse) GetUser

func (x *GetUserResponse) GetUser() *User

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 GoogleCredentials

type GoogleCredentials struct {
	AuthorizationCode string `protobuf:"bytes,1,opt,name=authorization_code,json=authorizationCode,proto3" json:"authorization_code,omitempty"`
	// contains filtered or unexported fields
}

func (*GoogleCredentials) Descriptor deprecated

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

Deprecated: Use GoogleCredentials.ProtoReflect.Descriptor instead.

func (*GoogleCredentials) GetAuthorizationCode

func (x *GoogleCredentials) GetAuthorizationCode() string

func (*GoogleCredentials) ProtoMessage

func (*GoogleCredentials) ProtoMessage()

func (*GoogleCredentials) ProtoReflect

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

func (*GoogleCredentials) Reset

func (x *GoogleCredentials) Reset()

func (*GoogleCredentials) String

func (x *GoogleCredentials) String() string

type PasswordCredentials

type PasswordCredentials struct {

	// Email address of the user
	Id       string `protobuf:"bytes,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 (*PasswordCredentials) Descriptor deprecated

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

Deprecated: Use PasswordCredentials.ProtoReflect.Descriptor instead.

func (*PasswordCredentials) GetId

func (x *PasswordCredentials) GetId() string

func (*PasswordCredentials) GetPassword

func (x *PasswordCredentials) GetPassword() string

func (*PasswordCredentials) ProtoMessage

func (*PasswordCredentials) ProtoMessage()

func (*PasswordCredentials) ProtoReflect

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

func (*PasswordCredentials) Reset

func (x *PasswordCredentials) Reset()

func (*PasswordCredentials) String

func (x *PasswordCredentials) String() string

type PurgeUserRequest

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

func (*PurgeUserRequest) Descriptor deprecated

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

Deprecated: Use PurgeUserRequest.ProtoReflect.Descriptor instead.

func (*PurgeUserRequest) GetId

func (x *PurgeUserRequest) GetId() string

func (*PurgeUserRequest) ProtoMessage

func (*PurgeUserRequest) ProtoMessage()

func (*PurgeUserRequest) ProtoReflect

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

func (*PurgeUserRequest) Reset

func (x *PurgeUserRequest) Reset()

func (*PurgeUserRequest) String

func (x *PurgeUserRequest) String() string

type PurgeUserResponse

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

func (*PurgeUserResponse) Descriptor deprecated

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

Deprecated: Use PurgeUserResponse.ProtoReflect.Descriptor instead.

func (*PurgeUserResponse) ProtoMessage

func (*PurgeUserResponse) ProtoMessage()

func (*PurgeUserResponse) ProtoReflect

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

func (*PurgeUserResponse) Reset

func (x *PurgeUserResponse) Reset()

func (*PurgeUserResponse) String

func (x *PurgeUserResponse) String() string

type RequestVerificationCodeRequest added in v0.3.40

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

func (*RequestVerificationCodeRequest) Descriptor deprecated added in v0.3.40

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

Deprecated: Use RequestVerificationCodeRequest.ProtoReflect.Descriptor instead.

func (*RequestVerificationCodeRequest) GetEmail added in v0.3.40

func (x *RequestVerificationCodeRequest) GetEmail() string

func (*RequestVerificationCodeRequest) ProtoMessage added in v0.3.40

func (*RequestVerificationCodeRequest) ProtoMessage()

func (*RequestVerificationCodeRequest) ProtoReflect added in v0.3.40

func (*RequestVerificationCodeRequest) Reset added in v0.3.40

func (x *RequestVerificationCodeRequest) Reset()

func (*RequestVerificationCodeRequest) String added in v0.3.40

type RequestVerificationCodeResponse added in v0.3.40

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

func (*RequestVerificationCodeResponse) Descriptor deprecated added in v0.3.40

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

Deprecated: Use RequestVerificationCodeResponse.ProtoReflect.Descriptor instead.

func (*RequestVerificationCodeResponse) ProtoMessage added in v0.3.40

func (*RequestVerificationCodeResponse) ProtoMessage()

func (*RequestVerificationCodeResponse) ProtoReflect added in v0.3.40

func (*RequestVerificationCodeResponse) Reset added in v0.3.40

func (*RequestVerificationCodeResponse) String added in v0.3.40

type ResetPasswordRequest

type ResetPasswordRequest struct {

	// Email address of the user
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetPasswordRequest) Descriptor deprecated

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

Deprecated: Use ResetPasswordRequest.ProtoReflect.Descriptor instead.

func (*ResetPasswordRequest) GetId

func (x *ResetPasswordRequest) GetId() string

func (*ResetPasswordRequest) ProtoMessage

func (*ResetPasswordRequest) ProtoMessage()

func (*ResetPasswordRequest) ProtoReflect

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

func (*ResetPasswordRequest) Reset

func (x *ResetPasswordRequest) Reset()

func (*ResetPasswordRequest) String

func (x *ResetPasswordRequest) String() string

type ResetPasswordResponse

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

func (*ResetPasswordResponse) Descriptor deprecated

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

Deprecated: Use ResetPasswordResponse.ProtoReflect.Descriptor instead.

func (*ResetPasswordResponse) ProtoMessage

func (*ResetPasswordResponse) ProtoMessage()

func (*ResetPasswordResponse) ProtoReflect

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

func (*ResetPasswordResponse) Reset

func (x *ResetPasswordResponse) Reset()

func (*ResetPasswordResponse) String

func (x *ResetPasswordResponse) String() string

type SignInRequest

type SignInRequest struct {
	GoogleCredentials   *GoogleCredentials   `protobuf:"bytes,1,opt,name=google_credentials,json=googleCredentials,proto3" json:"google_credentials,omitempty"`
	PasswordCredentials *PasswordCredentials `protobuf:"bytes,2,opt,name=password_credentials,json=passwordCredentials,proto3" json:"password_credentials,omitempty"`
	RefreshToken        *string              `protobuf:"bytes,3,opt,name=refresh_token,json=refreshToken,proto3,oneof" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*SignInRequest) Descriptor deprecated

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

Deprecated: Use SignInRequest.ProtoReflect.Descriptor instead.

func (*SignInRequest) GetGoogleCredentials

func (x *SignInRequest) GetGoogleCredentials() *GoogleCredentials

func (*SignInRequest) GetPasswordCredentials

func (x *SignInRequest) GetPasswordCredentials() *PasswordCredentials

func (*SignInRequest) GetRefreshToken

func (x *SignInRequest) GetRefreshToken() string

func (*SignInRequest) ProtoMessage

func (*SignInRequest) ProtoMessage()

func (*SignInRequest) ProtoReflect

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

func (*SignInRequest) Reset

func (x *SignInRequest) Reset()

func (*SignInRequest) String

func (x *SignInRequest) String() string

type SignInResponse

type SignInResponse struct {
	AccessToken            *string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3,oneof" json:"access_token,omitempty"`
	UserId                 *string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3,oneof" json:"user_id,omitempty"`
	VerificationIsRequired *bool   `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SignInResponse) Descriptor deprecated

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

Deprecated: Use SignInResponse.ProtoReflect.Descriptor instead.

func (*SignInResponse) GetAccessToken

func (x *SignInResponse) GetAccessToken() string

func (*SignInResponse) GetUserId

func (x *SignInResponse) GetUserId() string

func (*SignInResponse) GetVerificationIsRequired added in v0.3.40

func (x *SignInResponse) GetVerificationIsRequired() bool

func (*SignInResponse) ProtoMessage

func (*SignInResponse) ProtoMessage()

func (*SignInResponse) ProtoReflect

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

func (*SignInResponse) Reset

func (x *SignInResponse) Reset()

func (*SignInResponse) String

func (x *SignInResponse) String() string

type SignOutRequest

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

func (*SignOutRequest) Descriptor deprecated

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

Deprecated: Use SignOutRequest.ProtoReflect.Descriptor instead.

func (*SignOutRequest) GetAccessToken

func (x *SignOutRequest) GetAccessToken() string

func (*SignOutRequest) ProtoMessage

func (*SignOutRequest) ProtoMessage()

func (*SignOutRequest) ProtoReflect

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

func (*SignOutRequest) Reset

func (x *SignOutRequest) Reset()

func (*SignOutRequest) String

func (x *SignOutRequest) String() string

type SignOutResponse

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

func (*SignOutResponse) Descriptor deprecated

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

Deprecated: Use SignOutResponse.ProtoReflect.Descriptor instead.

func (*SignOutResponse) ProtoMessage

func (*SignOutResponse) ProtoMessage()

func (*SignOutResponse) ProtoReflect

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

func (*SignOutResponse) Reset

func (x *SignOutResponse) Reset()

func (*SignOutResponse) String

func (x *SignOutResponse) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) GetRefreshToken added in v0.3.31

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) PurgeUser

func (UnimplementedUserServiceServer) RequestVerificationCode added in v0.3.40

func (UnimplementedUserServiceServer) ResetPassword

func (UnimplementedUserServiceServer) SignIn

func (UnimplementedUserServiceServer) SignOut

func (UnimplementedUserServiceServer) UpdatePassword

func (UnimplementedUserServiceServer) VerifyEmail added in v0.3.40

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 UpdatePasswordRequest

type UpdatePasswordRequest struct {
	NewPassword string `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdatePasswordRequest) Descriptor deprecated

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

Deprecated: Use UpdatePasswordRequest.ProtoReflect.Descriptor instead.

func (*UpdatePasswordRequest) GetNewPassword

func (x *UpdatePasswordRequest) GetNewPassword() string

func (*UpdatePasswordRequest) ProtoMessage

func (*UpdatePasswordRequest) ProtoMessage()

func (*UpdatePasswordRequest) ProtoReflect

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

func (*UpdatePasswordRequest) Reset

func (x *UpdatePasswordRequest) Reset()

func (*UpdatePasswordRequest) String

func (x *UpdatePasswordRequest) String() string

type UpdatePasswordResponse

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

func (*UpdatePasswordResponse) Descriptor deprecated

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

Deprecated: Use UpdatePasswordResponse.ProtoReflect.Descriptor instead.

func (*UpdatePasswordResponse) ProtoMessage

func (*UpdatePasswordResponse) ProtoMessage()

func (*UpdatePasswordResponse) ProtoReflect

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

func (*UpdatePasswordResponse) Reset

func (x *UpdatePasswordResponse) Reset()

func (*UpdatePasswordResponse) String

func (x *UpdatePasswordResponse) String() string

type User

type User struct {
	Id          string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Email       string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// contains filtered or unexported fields
}

func (*User) Descriptor deprecated

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

Deprecated: Use User.ProtoReflect.Descriptor instead.

func (*User) GetDisplayName

func (x *User) GetDisplayName() string

func (*User) GetEmail

func (x *User) GetEmail() string

func (*User) GetId

func (x *User) GetId() 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

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

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

type VerifyEmailRequest added in v0.3.40

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

func (*VerifyEmailRequest) Descriptor deprecated added in v0.3.40

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

Deprecated: Use VerifyEmailRequest.ProtoReflect.Descriptor instead.

func (*VerifyEmailRequest) GetEmail added in v0.3.40

func (x *VerifyEmailRequest) GetEmail() string

func (*VerifyEmailRequest) GetVerificationCode added in v0.3.40

func (x *VerifyEmailRequest) GetVerificationCode() string

func (*VerifyEmailRequest) ProtoMessage added in v0.3.40

func (*VerifyEmailRequest) ProtoMessage()

func (*VerifyEmailRequest) ProtoReflect added in v0.3.40

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

func (*VerifyEmailRequest) Reset added in v0.3.40

func (x *VerifyEmailRequest) Reset()

func (*VerifyEmailRequest) String added in v0.3.40

func (x *VerifyEmailRequest) String() string

type VerifyEmailResponse added in v0.3.40

type VerifyEmailResponse struct {
	AccessToken string `protobuf:"bytes,1,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	UserId      string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*VerifyEmailResponse) Descriptor deprecated added in v0.3.40

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

Deprecated: Use VerifyEmailResponse.ProtoReflect.Descriptor instead.

func (*VerifyEmailResponse) GetAccessToken added in v0.3.43

func (x *VerifyEmailResponse) GetAccessToken() string

func (*VerifyEmailResponse) GetUserId added in v0.3.43

func (x *VerifyEmailResponse) GetUserId() string

func (*VerifyEmailResponse) ProtoMessage added in v0.3.40

func (*VerifyEmailResponse) ProtoMessage()

func (*VerifyEmailResponse) ProtoReflect added in v0.3.40

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

func (*VerifyEmailResponse) Reset added in v0.3.40

func (x *VerifyEmailResponse) Reset()

func (*VerifyEmailResponse) String added in v0.3.40

func (x *VerifyEmailResponse) String() string

Directories

Path Synopsis
Package user_mock is a generated GoMock package.
Package user_mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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