mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 19:21:03 +01:00
12 lines
184 B
Go
12 lines
184 B
Go
|
package rule
|
||
|
|
||
|
import (
|
||
|
"github.com/kataras/iris/context"
|
||
|
)
|
||
|
|
||
|
// Rule a superset of validators
|
||
|
type Rule interface {
|
||
|
Claim(ctx context.Context) bool
|
||
|
Valid(ctx context.Context) bool
|
||
|
}
|