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 }