12 lines
231 B
Go
12 lines
231 B
Go
package auth
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// Abstracts the authentication backend for the server.
|
|
type AuthProvider interface {
|
|
// Returns HTTP middleware for performing authentication.
|
|
Middleware() func(http.Handler) http.Handler
|
|
}
|