Documentation ¶
Index ¶
- func CreatePWResetTokenForEmail(pwResetRepo repository.PWResetTokenRepository, ...) (*models.PWResetToken, string, error)
- func VerifyToken(pwResetRepo repository.PWResetTokenRepository, ...) (*models.PWResetToken, error)
- type CLILoginExchangeHandler
- type CLILoginHandler
- type UserCreateHandler
- type UserDeleteHandler
- type UserGetCurrentHandler
- type UserLoginHandler
- type UserLogoutHandler
- type UserOAuthGithubCallbackHandler
- type UserOAuthGithubHandler
- type UserOAuthGoogleCallbackHandler
- type UserOAuthGoogleHandler
- type UserPasswordFinalizeResetHandler
- type UserPasswordInitiateResetHandler
- type UserPasswordVerifyResetHandler
- type VerifyEmailFinalizeHandler
- type VerifyEmailInitiateHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePWResetTokenForEmail ¶
func CreatePWResetTokenForEmail( pwResetRepo repository.PWResetTokenRepository, handleErr func(w http.ResponseWriter, r *http.Request, err apierrors.RequestError), w http.ResponseWriter, r *http.Request, request *types.InitiateResetUserPasswordRequest, ) (*models.PWResetToken, string, error)
func VerifyToken ¶
func VerifyToken( pwResetRepo repository.PWResetTokenRepository, handleErr func(w http.ResponseWriter, r *http.Request, err apierrors.RequestError), w http.ResponseWriter, r *http.Request, request *types.VerifyTokenFinalizeRequest, email string, ) (*models.PWResetToken, error)
Types ¶
type CLILoginExchangeHandler ¶
type CLILoginExchangeHandler struct {
handlers.PorterHandlerReadWriter
}
func NewCLILoginExchangeHandler ¶
func NewCLILoginExchangeHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *CLILoginExchangeHandler
func (*CLILoginExchangeHandler) ServeHTTP ¶
func (c *CLILoginExchangeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CLILoginHandler ¶
type CLILoginHandler struct {
handlers.PorterHandlerReader
}
func NewCLILoginHandler ¶
func NewCLILoginHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *CLILoginHandler
func (*CLILoginHandler) ServeHTTP ¶
func (c *CLILoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserCreateHandler ¶
type UserCreateHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserCreateHandler ¶
func NewUserCreateHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserCreateHandler
func (*UserCreateHandler) ServeHTTP ¶
func (u *UserCreateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserDeleteHandler ¶
type UserDeleteHandler struct {
handlers.PorterHandlerWriter
}
func NewUserDeleteHandler ¶
func NewUserDeleteHandler( config *config.Config, writer shared.ResultWriter, ) *UserDeleteHandler
func (*UserDeleteHandler) ServeHTTP ¶
func (u *UserDeleteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserGetCurrentHandler ¶
type UserGetCurrentHandler struct {
handlers.PorterHandlerWriter
}
func NewUserGetCurrentHandler ¶
func NewUserGetCurrentHandler( config *config.Config, writer shared.ResultWriter, ) *UserGetCurrentHandler
func (*UserGetCurrentHandler) ServeHTTP ¶
func (a *UserGetCurrentHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserLoginHandler ¶
type UserLoginHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserLoginHandler ¶
func NewUserLoginHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserLoginHandler
func (*UserLoginHandler) ServeHTTP ¶
func (u *UserLoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserLogoutHandler ¶
type UserLogoutHandler struct {
handlers.PorterHandler
}
func NewUserLogoutHandler ¶
func NewUserLogoutHandler( config *config.Config, ) *UserLogoutHandler
func (*UserLogoutHandler) ServeHTTP ¶
func (u *UserLogoutHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserOAuthGithubCallbackHandler ¶
type UserOAuthGithubCallbackHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserOAuthGithubCallbackHandler ¶
func NewUserOAuthGithubCallbackHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserOAuthGithubCallbackHandler
func (*UserOAuthGithubCallbackHandler) ServeHTTP ¶
func (p *UserOAuthGithubCallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserOAuthGithubHandler ¶
type UserOAuthGithubHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserOAuthGithubHandler ¶
func NewUserOAuthGithubHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserOAuthGithubHandler
func (*UserOAuthGithubHandler) ServeHTTP ¶
func (p *UserOAuthGithubHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserOAuthGoogleCallbackHandler ¶
type UserOAuthGoogleCallbackHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserOAuthGoogleCallbackHandler ¶
func NewUserOAuthGoogleCallbackHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserOAuthGoogleCallbackHandler
func (*UserOAuthGoogleCallbackHandler) ServeHTTP ¶
func (p *UserOAuthGoogleCallbackHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserOAuthGoogleHandler ¶
type UserOAuthGoogleHandler struct {
handlers.PorterHandlerReadWriter
}
func NewUserOAuthGoogleHandler ¶
func NewUserOAuthGoogleHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserOAuthGoogleHandler
func (*UserOAuthGoogleHandler) ServeHTTP ¶
func (p *UserOAuthGoogleHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserPasswordFinalizeResetHandler ¶
type UserPasswordFinalizeResetHandler struct {
handlers.PorterHandlerReader
}
func NewUserPasswordFinalizeResetHandler ¶
func NewUserPasswordFinalizeResetHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserPasswordFinalizeResetHandler
func (*UserPasswordFinalizeResetHandler) ServeHTTP ¶
func (c *UserPasswordFinalizeResetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserPasswordInitiateResetHandler ¶
type UserPasswordInitiateResetHandler struct {
handlers.PorterHandlerReader
}
func NewUserPasswordInitiateResetHandler ¶
func NewUserPasswordInitiateResetHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserPasswordInitiateResetHandler
func (*UserPasswordInitiateResetHandler) ServeHTTP ¶
func (c *UserPasswordInitiateResetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UserPasswordVerifyResetHandler ¶
type UserPasswordVerifyResetHandler struct {
handlers.PorterHandlerReader
}
func NewUserPasswordVerifyResetHandler ¶
func NewUserPasswordVerifyResetHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, writer shared.ResultWriter, ) *UserPasswordVerifyResetHandler
func (*UserPasswordVerifyResetHandler) ServeHTTP ¶
func (c *UserPasswordVerifyResetHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type VerifyEmailFinalizeHandler ¶
type VerifyEmailFinalizeHandler struct {
handlers.PorterHandlerReader
}
func NewVerifyEmailFinalizeHandler ¶
func NewVerifyEmailFinalizeHandler( config *config.Config, decoderValidator shared.RequestDecoderValidator, ) *VerifyEmailFinalizeHandler
func (*VerifyEmailFinalizeHandler) ServeHTTP ¶
func (v *VerifyEmailFinalizeHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type VerifyEmailInitiateHandler ¶
type VerifyEmailInitiateHandler struct {
handlers.PorterHandler
}
func NewVerifyEmailInitiateHandler ¶
func NewVerifyEmailInitiateHandler( config *config.Config, ) *VerifyEmailInitiateHandler
func (*VerifyEmailInitiateHandler) ServeHTTP ¶
func (v *VerifyEmailInitiateHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.