1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 05:25:58 +00:00
Files
kararas_iris/cache/client/rule/not_satisfied.go
Gerasimos (Makis) Maropoulos 2a4ce876b6 add the stale release
2020-08-12 23:41:20 +03:00

23 lines
386 B
Go

package rule
import (
"github.com/kataras/iris/context"
)
type notSatisfiedRule struct{}
var _ Rule = &notSatisfiedRule{}
// NotSatisfied returns a rule which allows nothing
func NotSatisfied() Rule {
return &notSatisfiedRule{}
}
func (n *notSatisfiedRule) Claim(*context.Context) bool {
return false
}
func (n *notSatisfiedRule) Valid(*context.Context) bool {
return false
}