mirror of
https://github.com/kataras/iris.git
synced 2025-02-03 07:50:34 +01:00
16 lines
356 B
Go
16 lines
356 B
Go
|
// Copyright 2017 Gerasimos Maropoulos, ΓΜ. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
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
|
||
|
}
|