v1

package
v0.2.182 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SetupStepKind_name = map[int32]string{
		0: "SETUP_STEP_KIND_UNSPECIFIED",
		1: "SETUP_STEP_KIND_USERNAME",
		2: "SETUP_STEP_KIND_PROFILE_IMAGE",
		3: "SETUP_STEP_KIND_DISPLAY_NAME",
	}
	SetupStepKind_value = map[string]int32{
		"SETUP_STEP_KIND_UNSPECIFIED":   0,
		"SETUP_STEP_KIND_USERNAME":      1,
		"SETUP_STEP_KIND_PROFILE_IMAGE": 2,
		"SETUP_STEP_KIND_DISPLAY_NAME":  3,
	}
)

Enum value maps for SetupStepKind.

View Source
var File_basket_user_service_v1_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "basket.user_service.v1.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignIn",
			Handler:    _UserService_SignIn_Handler,
		},
		{
			MethodName: "GetSetupSteps",
			Handler:    _UserService_GetSetupSteps_Handler,
		},
		{
			MethodName: "GetUser",
			Handler:    _UserService_GetUser_Handler,
		},
		{
			MethodName: "UpdateUser",
			Handler:    _UserService_UpdateUser_Handler,
		},
		{
			MethodName: "CreateProfileImage",
			Handler:    _UserService_CreateProfileImage_Handler,
		},
		{
			MethodName: "GetRefreshToken",
			Handler:    _UserService_GetRefreshToken_Handler,
		},
		{
			MethodName: "SignOut",
			Handler:    _UserService_SignOut_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "basket/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 AppleCredentials

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

func (*AppleCredentials) Descriptor deprecated

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

Deprecated: Use AppleCredentials.ProtoReflect.Descriptor instead.

func (*AppleCredentials) GetToken

func (x *AppleCredentials) GetToken() string

func (*AppleCredentials) ProtoMessage

func (*AppleCredentials) ProtoMessage()

func (*AppleCredentials) ProtoReflect

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

func (*AppleCredentials) Reset

func (x *AppleCredentials) Reset()

func (*AppleCredentials) String

func (x *AppleCredentials) String() string

type CreateProfileImageRequest

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

func (*CreateProfileImageRequest) Descriptor deprecated

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

Deprecated: Use CreateProfileImageRequest.ProtoReflect.Descriptor instead.

func (*CreateProfileImageRequest) ProtoMessage

func (*CreateProfileImageRequest) ProtoMessage()

func (*CreateProfileImageRequest) ProtoReflect

func (*CreateProfileImageRequest) Reset

func (x *CreateProfileImageRequest) Reset()

func (*CreateProfileImageRequest) String

func (x *CreateProfileImageRequest) String() string

type CreateProfileImageResponse

type CreateProfileImageResponse struct {
	FileId    string `protobuf:"bytes,1,opt,name=file_id,json=fileId,proto3" json:"file_id,omitempty"`
	UploadUrl string `protobuf:"bytes,2,opt,name=upload_url,json=uploadUrl,proto3" json:"upload_url,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateProfileImageResponse) Descriptor deprecated

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

Deprecated: Use CreateProfileImageResponse.ProtoReflect.Descriptor instead.

func (*CreateProfileImageResponse) GetFileId

func (x *CreateProfileImageResponse) GetFileId() string

func (*CreateProfileImageResponse) GetUploadUrl

func (x *CreateProfileImageResponse) GetUploadUrl() string

func (*CreateProfileImageResponse) ProtoMessage

func (*CreateProfileImageResponse) ProtoMessage()

func (*CreateProfileImageResponse) ProtoReflect

func (*CreateProfileImageResponse) Reset

func (x *CreateProfileImageResponse) Reset()

func (*CreateProfileImageResponse) String

func (x *CreateProfileImageResponse) String() string

type GetRefreshTokenRequest

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

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

Deprecated: Use GetRefreshTokenRequest.ProtoReflect.Descriptor instead.

func (*GetRefreshTokenRequest) GetAccessToken

func (x *GetRefreshTokenRequest) GetAccessToken() string

func (*GetRefreshTokenRequest) ProtoMessage

func (*GetRefreshTokenRequest) ProtoMessage()

func (*GetRefreshTokenRequest) ProtoReflect

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

func (*GetRefreshTokenRequest) Reset

func (x *GetRefreshTokenRequest) Reset()

func (*GetRefreshTokenRequest) String

func (x *GetRefreshTokenRequest) String() string

type GetRefreshTokenResponse

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

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

Deprecated: Use GetRefreshTokenResponse.ProtoReflect.Descriptor instead.

func (*GetRefreshTokenResponse) GetRefreshToken

func (x *GetRefreshTokenResponse) GetRefreshToken() string

func (*GetRefreshTokenResponse) ProtoMessage

func (*GetRefreshTokenResponse) ProtoMessage()

func (*GetRefreshTokenResponse) ProtoReflect

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

func (*GetRefreshTokenResponse) Reset

func (x *GetRefreshTokenResponse) Reset()

func (*GetRefreshTokenResponse) String

func (x *GetRefreshTokenResponse) String() string

type GetSetupStepsRequest

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

func (*GetSetupStepsRequest) Descriptor deprecated

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

Deprecated: Use GetSetupStepsRequest.ProtoReflect.Descriptor instead.

func (*GetSetupStepsRequest) GetUserId

func (x *GetSetupStepsRequest) GetUserId() string

func (*GetSetupStepsRequest) ProtoMessage

func (*GetSetupStepsRequest) ProtoMessage()

func (*GetSetupStepsRequest) ProtoReflect

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

func (*GetSetupStepsRequest) Reset

func (x *GetSetupStepsRequest) Reset()

func (*GetSetupStepsRequest) String

func (x *GetSetupStepsRequest) String() string

type GetSetupStepsResponse

type GetSetupStepsResponse struct {
	Steps []*SetupStep `protobuf:"bytes,1,rep,name=steps,proto3" json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSetupStepsResponse) Descriptor deprecated

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

Deprecated: Use GetSetupStepsResponse.ProtoReflect.Descriptor instead.

func (*GetSetupStepsResponse) GetSteps

func (x *GetSetupStepsResponse) GetSteps() []*SetupStep

func (*GetSetupStepsResponse) ProtoMessage

func (*GetSetupStepsResponse) ProtoMessage()

func (*GetSetupStepsResponse) ProtoReflect

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

func (*GetSetupStepsResponse) Reset

func (x *GetSetupStepsResponse) Reset()

func (*GetSetupStepsResponse) String

func (x *GetSetupStepsResponse) 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 SetupStep

type SetupStep struct {
	Kind     SetupStepKind `protobuf:"varint,1,opt,name=kind,proto3,enum=basket.user_service.v1.SetupStepKind" json:"kind,omitempty"`
	Optional bool          `protobuf:"varint,2,opt,name=optional,proto3" json:"optional,omitempty"`
	// contains filtered or unexported fields
}

func (*SetupStep) Descriptor deprecated

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

Deprecated: Use SetupStep.ProtoReflect.Descriptor instead.

func (*SetupStep) GetKind

func (x *SetupStep) GetKind() SetupStepKind

func (*SetupStep) GetOptional

func (x *SetupStep) GetOptional() bool

func (*SetupStep) ProtoMessage

func (*SetupStep) ProtoMessage()

func (*SetupStep) ProtoReflect

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

func (*SetupStep) Reset

func (x *SetupStep) Reset()

func (*SetupStep) String

func (x *SetupStep) String() string

type SetupStepKind

type SetupStepKind int32
const (
	SetupStepKind_SETUP_STEP_KIND_UNSPECIFIED   SetupStepKind = 0
	SetupStepKind_SETUP_STEP_KIND_USERNAME      SetupStepKind = 1
	SetupStepKind_SETUP_STEP_KIND_PROFILE_IMAGE SetupStepKind = 2
	SetupStepKind_SETUP_STEP_KIND_DISPLAY_NAME  SetupStepKind = 3
)

func (SetupStepKind) Descriptor

func (SetupStepKind) Enum

func (x SetupStepKind) Enum() *SetupStepKind

func (SetupStepKind) EnumDescriptor deprecated

func (SetupStepKind) EnumDescriptor() ([]byte, []int)

Deprecated: Use SetupStepKind.Descriptor instead.

func (SetupStepKind) Number

func (SetupStepKind) String

func (x SetupStepKind) String() string

func (SetupStepKind) Type

type SignInRequest

type SignInRequest struct {
	AppleCredentials *AppleCredentials `protobuf:"bytes,1,opt,name=apple_credentials,json=appleCredentials,proto3" json:"apple_credentials,omitempty"`
	RefreshToken     string            `protobuf:"bytes,2,opt,name=refresh_token,json=refreshToken,proto3" 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) GetAppleCredentials

func (x *SignInRequest) GetAppleCredentials() *AppleCredentials

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" json:"access_token,omitempty"`
	User        *User  `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"`
	// 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) GetUser

func (x *SignInResponse) GetUser() *User

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) CreateProfileImage

func (UnimplementedUserServiceServer) GetRefreshToken

func (UnimplementedUserServiceServer) GetSetupSteps

func (UnimplementedUserServiceServer) GetUser

func (UnimplementedUserServiceServer) SignIn

func (UnimplementedUserServiceServer) SignOut

func (UnimplementedUserServiceServer) UpdateUser

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 {
	Id             string  `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username       *string `protobuf:"bytes,2,opt,name=username,proto3,oneof" json:"username,omitempty"`
	DisplayName    *string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3,oneof" json:"display_name,omitempty"`
	ProfileImageId *string `protobuf:"bytes,4,opt,name=profile_image_id,json=profileImageId,proto3,oneof" json:"profile_image_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateUserRequest) Descriptor deprecated

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

Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.

func (*UpdateUserRequest) GetDisplayName

func (x *UpdateUserRequest) GetDisplayName() string

func (*UpdateUserRequest) GetId

func (x *UpdateUserRequest) GetId() string

func (*UpdateUserRequest) GetProfileImageId

func (x *UpdateUserRequest) GetProfileImageId() 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 {
	// contains filtered or unexported fields
}

func (*UpdateUserResponse) Descriptor deprecated

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

Deprecated: Use UpdateUserResponse.ProtoReflect.Descriptor instead.

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           string          `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Username     string          `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	DisplayName  string          `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	ProfileImage *protobuf.Image `protobuf:"bytes,4,opt,name=profile_image,json=profileImage,proto3" json:"profile_image,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) GetId

func (x *User) GetId() string

func (*User) GetProfileImage

func (x *User) GetProfileImage() *protobuf.Image

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 {
	SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*SignInResponse, error)
	GetSetupSteps(ctx context.Context, in *GetSetupStepsRequest, opts ...grpc.CallOption) (*GetSetupStepsResponse, error)
	GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserResponse, error)
	UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserResponse, error)
	CreateProfileImage(ctx context.Context, in *CreateProfileImageRequest, opts ...grpc.CallOption) (*CreateProfileImageResponse, error)
	GetRefreshToken(ctx context.Context, in *GetRefreshTokenRequest, opts ...grpc.CallOption) (*GetRefreshTokenResponse, error)
	SignOut(ctx context.Context, in *SignOutRequest, opts ...grpc.CallOption) (*SignOutResponse, 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

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

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