webhookd/pkg/auth/authenticator.go
2020-02-25 20:51:07 +00:00

11 lines
171 B
Go

package auth
import (
"net/http"
)
// Authenticator is a generic interface to validate an HTTP request
type Authenticator interface {
Validate(r *http.Request) bool
}