handler

package
v0.0.0-...-0ea871c Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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