Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StandardHandler ¶
type StandardHandler struct {
// contains filtered or unexported fields
}
func New ¶
func New( logger logger.Logger, usernameHash [32]byte, passwordHash [32]byte, authMethodsCallback callback.AuthMethods, passwordVerifyCallback callback.PasswordVerify, ) (*StandardHandler, error)
New returns standard handler which can be used in standard HTTP library.
func (*StandardHandler) ServeHTTP ¶
func (s *StandardHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServerHTTP handles the webhook request.
Click to show internal directories.
Click to hide internal directories.