Documentation ¶
Overview ¶
Package Authentication of Product API
Documentation for Authentication of Product API ¶
Schemes : http BasePath : /auth Version : 1.0.0
Consumes:
- application/json
Produces:
- application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SigninController ¶
type SigninController struct {
// contains filtered or unexported fields
}
SigninController is the Signin route handler
func NewSigninController ¶
func NewSigninController(logger *zap.Logger) *SigninController
NewSigninController returns a frsh Signin controller
func (*SigninController) SigninHandler ¶
func (ctrl *SigninController) SigninHandler(rw http.ResponseWriter, r *http.Request)
This will be supplied to the MUX router. It will be called when signin request is sent if user not found or not validates, returns the Unauthorized error if found, returns the JWT back. [How to return this?]
type SignupController ¶
type SignupController struct {
// contains filtered or unexported fields
}
SignupController is the Signup route handler
func NewSignupController ¶
func NewSignupController(logger *zap.Logger) *SignupController
NewSignupController returns a frsh Signup controller
func (*SignupController) SignupHandler ¶
func (ctrl *SignupController) SignupHandler(rw http.ResponseWriter, r *http.Request)
adds the user to the database of users
Click to show internal directories.
Click to hide internal directories.