Documentation ¶
Index ¶
- Variables
- type AuthService
- func (s *AuthService) GetIdByToken(ctx context.Context, req *pb.GetIdByTokenReq) (*pb.GetIdByTokenReply, error)
- func (s *AuthService) Login(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
- func (s *AuthService) Register(ctx context.Context, req *pb.RegisterRequest) (*emptypb.Empty, error)
- func (s *AuthService) UpdateUserInfo(ctx context.Context, req *pb.UpdateUserReq) (*emptypb.Empty, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewAuthService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct { pb.UnimplementedGreeterServer // contains filtered or unexported fields }
func NewAuthService ¶
func NewAuthService(log log.Logger, user *biz.UserUsecase) *AuthService
func (*AuthService) GetIdByToken ¶
func (s *AuthService) GetIdByToken(ctx context.Context, req *pb.GetIdByTokenReq) (*pb.GetIdByTokenReply, error)
func (*AuthService) Login ¶
func (s *AuthService) Login(ctx context.Context, req *pb.AuthRequest) (*pb.AuthReply, error)
func (*AuthService) Register ¶
func (s *AuthService) Register(ctx context.Context, req *pb.RegisterRequest) (*emptypb.Empty, error)
func (*AuthService) UpdateUserInfo ¶
func (s *AuthService) UpdateUserInfo(ctx context.Context, req *pb.UpdateUserReq) (*emptypb.Empty, error)
Click to show internal directories.
Click to hide internal directories.