Documentation ¶
Index ¶
- func NewUserGrpc(us service.User) pb.UserServiceServer
- type UserGrpcImpl
- func (u *UserGrpcImpl) AddRefreshToken(ctx context.Context, t *pb.AddRefreshTokenReq) (*emptypb.Empty, error)
- func (u *UserGrpcImpl) Create(ctx context.Context, ur *pb.RegisterReq) (*emptypb.Empty, error)
- func (u *UserGrpcImpl) FindByEmail(ctx context.Context, e *pb.Email) (*pb.FindUserRes, error)
- func (u *UserGrpcImpl) FindByRefreshToken(ctx context.Context, t *pb.RefreshToken) (*pb.FindUserRes, error)
- func (u *UserGrpcImpl) SetNullRefreshToken(ctx context.Context, t *pb.RefreshToken) (*emptypb.Empty, 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(us service.User) pb.UserServiceServer
Types ¶
type UserGrpcImpl ¶
type UserGrpcImpl struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func (*UserGrpcImpl) AddRefreshToken ¶
func (u *UserGrpcImpl) AddRefreshToken(ctx context.Context, t *pb.AddRefreshTokenReq) (*emptypb.Empty, error)
func (*UserGrpcImpl) Create ¶
func (u *UserGrpcImpl) Create(ctx context.Context, ur *pb.RegisterReq) (*emptypb.Empty, error)
func (*UserGrpcImpl) FindByEmail ¶
func (u *UserGrpcImpl) FindByEmail(ctx context.Context, e *pb.Email) (*pb.FindUserRes, error)
func (*UserGrpcImpl) FindByRefreshToken ¶
func (u *UserGrpcImpl) FindByRefreshToken(ctx context.Context, t *pb.RefreshToken) (*pb.FindUserRes, error)
func (*UserGrpcImpl) SetNullRefreshToken ¶
func (u *UserGrpcImpl) SetNullRefreshToken(ctx context.Context, t *pb.RefreshToken) (*emptypb.Empty, 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.