mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-24 08:42:17 +02:00
27010d9fe4
- Replace the old logging mechanisms with a leveled one. This is important as authboss needs to start saying a lot more about what's happening in the Info log, which will end up like Debug but that's okay. - Replace the error handling mechanisms with something different. This allows people to define their own error handlers.
12 lines
280 B
Go
12 lines
280 B
Go
package authboss
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// ErrorHandler allows routing to http.HandlerFunc's that additionally
|
|
// return an error for a higher level error handling mechanism.
|
|
type ErrorHandler interface {
|
|
Wrap(func(w http.ResponseWriter, r *http.Request) error) http.Handler
|
|
}
|