9 lines
176 B
Go
9 lines
176 B
Go
|
|
package auth
|
||
|
|
|
||
|
|
import "net/http"
|
||
|
|
|
||
|
|
type authorizationChecker interface {
|
||
|
|
equal(other authorizationChecker) bool
|
||
|
|
isAuthorized(headers http.Header, request *http.Request) bool
|
||
|
|
}
|