user

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserService_Create_FullMethodName              = "/user.UserService/Create"
	UserService_FindByEmail_FullMethodName         = "/user.UserService/FindByEmail"
	UserService_FindByRefreshToken_FullMethodName  = "/user.UserService/FindByRefreshToken"
	UserService_Upsert_FullMethodName              = "/user.UserService/Upsert"
	UserService_AddRefreshToken_FullMethodName     = "/user.UserService/AddRefreshToken"
	UserService_SetNullRefreshToken_FullMethodName = "/user.UserService/SetNullRefreshToken"
)

Variables

View Source
var File_proto_user_service_proto protoreflect.FileDescriptor
View Source
var File_proto_user_type_login_google_proto protoreflect.FileDescriptor
View Source
var File_proto_user_type_register_request_proto protoreflect.FileDescriptor
View Source
var File_proto_user_type_token_proto protoreflect.FileDescriptor
View Source
var File_proto_user_type_user_proto protoreflect.FileDescriptor
View Source
var UserService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "user.UserService",
	HandlerType: (*UserServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _UserService_Create_Handler,
		},
		{
			MethodName: "FindByEmail",
			Handler:    _UserService_FindByEmail_Handler,
		},
		{
			MethodName: "FindByRefreshToken",
			Handler:    _UserService_FindByRefreshToken_Handler,
		},
		{
			MethodName: "Upsert",
			Handler:    _UserService_Upsert_Handler,
		},
		{
			MethodName: "AddRefreshToken",
			Handler:    _UserService_AddRefreshToken_Handler,
		},
		{
			MethodName: "SetNullRefreshToken",
			Handler:    _UserService_SetNullRefreshToken_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/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 RegisterUserServiceServer

func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)

Types

type AddRefreshTokenReq added in v0.0.33

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

func (*AddRefreshTokenReq) Descriptor deprecated added in v0.0.33

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

Deprecated: Use AddRefreshTokenReq.ProtoReflect.Descriptor instead.

func (*AddRefreshTokenReq) GetEmail added in v0.0.33

func (x *AddRefreshTokenReq) GetEmail() string

func (*AddRefreshTokenReq) GetToken added in v0.0.33

func (x *AddRefreshTokenReq) GetToken() string

func (*AddRefreshTokenReq) ProtoMessage added in v0.0.33

func (*AddRefreshTokenReq) ProtoMessage()

func (*AddRefreshTokenReq) ProtoReflect added in v0.0.33

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

func (*AddRefreshTokenReq) Reset added in v0.0.33

func (x *AddRefreshTokenReq) Reset()

func (*AddRefreshTokenReq) String added in v0.0.33

func (x *AddRefreshTokenReq) String() string

type Email

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

func (*Email) Descriptor deprecated

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

Deprecated: Use Email.ProtoReflect.Descriptor instead.

func (*Email) GetEmail

func (x *Email) GetEmail() string

func (*Email) ProtoMessage

func (*Email) ProtoMessage()

func (*Email) ProtoReflect

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

func (*Email) Reset

func (x *Email) Reset()

func (*Email) String

func (x *Email) String() string

type FindUserRes added in v0.0.33

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

func (*FindUserRes) Descriptor deprecated added in v0.0.33

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

Deprecated: Use FindUserRes.ProtoReflect.Descriptor instead.

func (*FindUserRes) GetData added in v0.0.33

func (x *FindUserRes) GetData() *User

func (*FindUserRes) ProtoMessage added in v0.0.33

func (*FindUserRes) ProtoMessage()

func (*FindUserRes) ProtoReflect added in v0.0.33

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

func (*FindUserRes) Reset added in v0.0.33

func (x *FindUserRes) Reset()

func (*FindUserRes) String added in v0.0.33

func (x *FindUserRes) String() string

type LoginWithGoogleReq added in v0.0.33

type LoginWithGoogleReq struct {
	UserId       string `protobuf:"bytes,1,opt,name=user_id,proto3" json:"user_id,omitempty"`
	Email        string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FullName     string `protobuf:"bytes,3,opt,name=full_name,proto3" json:"full_name,omitempty"`
	PhotoProfile string `protobuf:"bytes,4,opt,name=photo_profile,proto3" json:"photo_profile,omitempty"`
	RefreshToken string `protobuf:"bytes,5,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginWithGoogleReq) Descriptor deprecated added in v0.0.33

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

Deprecated: Use LoginWithGoogleReq.ProtoReflect.Descriptor instead.

func (*LoginWithGoogleReq) GetEmail added in v0.0.33

func (x *LoginWithGoogleReq) GetEmail() string

func (*LoginWithGoogleReq) GetFullName added in v0.0.33

func (x *LoginWithGoogleReq) GetFullName() string

func (*LoginWithGoogleReq) GetPhotoProfile added in v0.0.33

func (x *LoginWithGoogleReq) GetPhotoProfile() string

func (*LoginWithGoogleReq) GetRefreshToken added in v0.0.33

func (x *LoginWithGoogleReq) GetRefreshToken() string

func (*LoginWithGoogleReq) GetUserId added in v0.0.33

func (x *LoginWithGoogleReq) GetUserId() string

func (*LoginWithGoogleReq) ProtoMessage added in v0.0.33

func (*LoginWithGoogleReq) ProtoMessage()

func (*LoginWithGoogleReq) ProtoReflect added in v0.0.33

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

func (*LoginWithGoogleReq) Reset added in v0.0.33

func (x *LoginWithGoogleReq) Reset()

func (*LoginWithGoogleReq) String added in v0.0.33

func (x *LoginWithGoogleReq) String() string

type RefreshToken added in v0.0.13

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

func (*RefreshToken) Descriptor deprecated added in v0.0.13

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

Deprecated: Use RefreshToken.ProtoReflect.Descriptor instead.

func (*RefreshToken) GetToken added in v0.0.13

func (x *RefreshToken) GetToken() string

func (*RefreshToken) ProtoMessage added in v0.0.13

func (*RefreshToken) ProtoMessage()

func (*RefreshToken) ProtoReflect added in v0.0.13

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

func (*RefreshToken) Reset added in v0.0.13

func (x *RefreshToken) Reset()

func (*RefreshToken) String added in v0.0.13

func (x *RefreshToken) String() string

type RegisterReq added in v0.0.33

type RegisterReq struct {
	UserId   string `protobuf:"bytes,1,opt,name=user_id,proto3" json:"user_id,omitempty"`
	Email    string `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FullName string `protobuf:"bytes,3,opt,name=full_name,proto3" json:"full_name,omitempty"`
	Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterReq) Descriptor deprecated added in v0.0.33

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

Deprecated: Use RegisterReq.ProtoReflect.Descriptor instead.

func (*RegisterReq) GetEmail added in v0.0.33

func (x *RegisterReq) GetEmail() string

func (*RegisterReq) GetFullName added in v0.0.33

func (x *RegisterReq) GetFullName() string

func (*RegisterReq) GetPassword added in v0.0.33

func (x *RegisterReq) GetPassword() string

func (*RegisterReq) GetUserId added in v0.0.33

func (x *RegisterReq) GetUserId() string

func (*RegisterReq) ProtoMessage added in v0.0.33

func (*RegisterReq) ProtoMessage()

func (*RegisterReq) ProtoReflect added in v0.0.33

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

func (*RegisterReq) Reset added in v0.0.33

func (x *RegisterReq) Reset()

func (*RegisterReq) String added in v0.0.33

func (x *RegisterReq) String() string

type UnimplementedUserServiceServer

type UnimplementedUserServiceServer struct {
}

UnimplementedUserServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedUserServiceServer) AddRefreshToken added in v0.0.13

func (UnimplementedUserServiceServer) Create

func (UnimplementedUserServiceServer) FindByEmail

func (UnimplementedUserServiceServer) FindByRefreshToken added in v0.0.15

func (UnimplementedUserServiceServer) SetNullRefreshToken added in v0.0.16

func (UnimplementedUserServiceServer) Upsert added in v0.0.11

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 {
	UserId       string                 `protobuf:"bytes,1,opt,name=user_id,proto3" json:"user_id,omitempty"`
	Email        string                 `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	FullName     string                 `protobuf:"bytes,3,opt,name=full_name,proto3" json:"full_name,omitempty"`
	Whatsapp     string                 `protobuf:"bytes,4,opt,name=whatsapp,proto3" json:"whatsapp,omitempty"`
	PhotoProfile string                 `protobuf:"bytes,5,opt,name=photo_profile,proto3" json:"photo_profile,omitempty"`
	Password     string                 `protobuf:"bytes,6,opt,name=password,proto3" json:"password,omitempty"`
	RefreshToken string                 `protobuf:"bytes,7,opt,name=refresh_token,proto3" json:"refresh_token,omitempty"`
	CreatedAt    *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,proto3" json:"created_at,omitempty"`
	UpdatedAt    *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,proto3" json:"updated_at,omitempty"`
	Role         string                 `protobuf:"bytes,10,opt,name=role,proto3" json:"role,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) GetPassword

func (x *User) GetPassword() string

func (*User) GetPhotoProfile

func (x *User) GetPhotoProfile() string

func (*User) GetRefreshToken

func (x *User) GetRefreshToken() string

func (*User) GetRole

func (x *User) GetRole() string

func (*User) GetUpdatedAt

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

func (*User) GetUserId

func (x *User) GetUserId() string

func (*User) GetWhatsapp

func (x *User) GetWhatsapp() 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 {
	Create(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	FindByEmail(ctx context.Context, in *Email, opts ...grpc.CallOption) (*FindUserRes, error)
	FindByRefreshToken(ctx context.Context, in *RefreshToken, opts ...grpc.CallOption) (*FindUserRes, error)
	Upsert(ctx context.Context, in *LoginWithGoogleReq, opts ...grpc.CallOption) (*User, error)
	AddRefreshToken(ctx context.Context, in *AddRefreshTokenReq, opts ...grpc.CallOption) (*emptypb.Empty, error)
	SetNullRefreshToken(ctx context.Context, in *RefreshToken, opts ...grpc.CallOption) (*emptypb.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 {
	Create(context.Context, *RegisterReq) (*emptypb.Empty, error)
	FindByEmail(context.Context, *Email) (*FindUserRes, error)
	FindByRefreshToken(context.Context, *RefreshToken) (*FindUserRes, error)
	Upsert(context.Context, *LoginWithGoogleReq) (*User, error)
	AddRefreshToken(context.Context, *AddRefreshTokenReq) (*emptypb.Empty, error)
	SetNullRefreshToken(context.Context, *RefreshToken) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

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

Jump to

Keyboard shortcuts

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