iris/cache/client/rule/not_satisfied.go
2017-07-10 18:32:42 +03:00

23 lines
384 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
}