Check implements Checker.
(ctx context.Context, r *http.Request)
| 45 | |
| 46 | // Check implements Checker. |
| 47 | func (a any) Check(ctx context.Context, r *http.Request) bool { |
| 48 | for _, c := range a { |
| 49 | if ok := c.Check(ctx, r); ok { |
| 50 | return true |
| 51 | } |
| 52 | } |
| 53 | return false |
| 54 | } |
| 55 | |
| 56 | // Fail is a Checker that always fails. |
| 57 | type fail struct{} |