prometheus-fail2ban-exporter/auth/empty.go

15 lines
226 B
Go
Raw Normal View History

2023-10-02 10:50:34 +00:00
package auth
import "net/http"
func NewEmptyAuthProvider() AuthProvider {
return &emptyAuthProvider{}
}
type emptyAuthProvider struct {
}
func (p *emptyAuthProvider) IsAllowed(request *http.Request) bool {
return true
}