mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 18:51:03 +01:00
23 lines
386 B
Go
23 lines
386 B
Go
package rule
|
|
|
|
import (
|
|
"github.com/kataras/iris/context"
|
|
)
|
|
|
|
type notSatisfiedRule struct{}
|
|
|
|
var _ Rule = ¬SatisfiedRule{}
|
|
|
|
// NotSatisfied returns a rule which allows nothing
|
|
func NotSatisfied() Rule {
|
|
return ¬SatisfiedRule{}
|
|
}
|
|
|
|
func (n *notSatisfiedRule) Claim(*context.Context) bool {
|
|
return false
|
|
}
|
|
|
|
func (n *notSatisfiedRule) Valid(*context.Context) bool {
|
|
return false
|
|
}
|