12345678910111213141516171819202122 |
- 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
- }
|