standardhandler

package
v0.0.0-...-d8e0d35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2023 License: MIT Imports: 13 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL