Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( wire.Struct(new(pb.UnimplementedAuthServiceServer), "*"), wire.Struct(new(pb.UnimplementedUserServiceServer), "*"), wire.Struct(new(AuthHandler), "*"), wire.Bind(new(pb.AuthServiceServer), new(*AuthHandler)), wire.Struct(new(UserHandler), "*"), wire.Bind(new(pb.UserServiceServer), new(*UserHandler)), )
Functions ¶
This section is empty.
Types ¶
type AuthHandler ¶
type AuthHandler struct { pb.UnimplementedAuthServiceServer TokenMiddleware *middleware.TokenMiddleware UserUseCase usecase.IUserUseCase }
func (*AuthHandler) Login ¶
func (a *AuthHandler) Login(ctx context.Context, in *pb.Login_Request) (*pb.Login_Response, error)
type UserHandler ¶
type UserHandler struct { pb.UnimplementedUserServiceServer UserUseCase usecase.IUserUseCase TokenMiddleware *middleware.TokenMiddleware }
func (*UserHandler) Create ¶
func (u *UserHandler) Create(ctx context.Context, in *pb.Create_Request) (*pb.Create_Response, error)
func (*UserHandler) Get ¶
func (u *UserHandler) Get(ctx context.Context, in *pb.Get_Request) (*pb.Get_Response, error)
func (*UserHandler) HashPassword ¶
func (u *UserHandler) HashPassword(password string) (string, error)
Click to show internal directories.
Click to hide internal directories.