Documentation ¶
Index ¶
- func NewUserGrpc(unaryRequest *interceptor.UnaryRequest) (delivery.UserGrpc, *grpc.ClientConn)
- type UserGrpcImpl
- func (u *UserGrpcImpl) AddRefreshToken(ctx context.Context, data *pb.AddRefreshTokenReq) error
- func (u *UserGrpcImpl) Create(ctx context.Context, data *pb.RegisterReq) error
- func (u *UserGrpcImpl) FindByEmail(ctx context.Context, email string) (*pb.FindUserRes, error)
- func (u *UserGrpcImpl) FindByRefreshToken(ctx context.Context, data *pb.RefreshToken) (*pb.FindUserRes, error)
- func (u *UserGrpcImpl) SetNullRefreshToken(ctx context.Context, refreshToken string) error
- func (u *UserGrpcImpl) Upsert(ctx context.Context, data *pb.LoginWithGoogleReq) (*pb.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUserGrpc ¶
func NewUserGrpc(unaryRequest *interceptor.UnaryRequest) (delivery.UserGrpc, *grpc.ClientConn)
Types ¶
type UserGrpcImpl ¶
type UserGrpcImpl struct {
// contains filtered or unexported fields
}
func (*UserGrpcImpl) AddRefreshToken ¶
func (u *UserGrpcImpl) AddRefreshToken(ctx context.Context, data *pb.AddRefreshTokenReq) error
func (*UserGrpcImpl) Create ¶
func (u *UserGrpcImpl) Create(ctx context.Context, data *pb.RegisterReq) error
func (*UserGrpcImpl) FindByEmail ¶
func (u *UserGrpcImpl) FindByEmail(ctx context.Context, email string) (*pb.FindUserRes, error)
func (*UserGrpcImpl) FindByRefreshToken ¶
func (u *UserGrpcImpl) FindByRefreshToken(ctx context.Context, data *pb.RefreshToken) (*pb.FindUserRes, error)
func (*UserGrpcImpl) SetNullRefreshToken ¶
func (u *UserGrpcImpl) SetNullRefreshToken(ctx context.Context, refreshToken string) error
func (*UserGrpcImpl) Upsert ¶
func (u *UserGrpcImpl) Upsert(ctx context.Context, data *pb.LoginWithGoogleReq) (*pb.User, error)
Click to show internal directories.
Click to hide internal directories.