Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface {
// Authenticate the request, if there is no error, the bool value
// determines whether the request is authenticated or not
Authenticate(req *http.Request) (bool, error)
}
Authenticator defines Authenticate function to authenticate requests
func NewSecretAuthenticator ¶
func NewSecretAuthenticator(secrets map[string]string) Authenticator
NewSecretAuthenticator returns an instance of secretAuthenticator
Click to show internal directories.
Click to hide internal directories.