---
title: policy
layout: protoc-gen-docs
generator: protoc-gen-docs
number_of_entries: 2
---
adapter config for policy backend.
Params
Config for policy backend, which could be used as a fake adapter for integration test,
supports checknothing and keyval template.
Field |
Type |
Description |
Required |
checkParams |
CheckParams |
Specify check related params.
|
No
|
table |
map<string, string> |
Specify route directive related params.
|
No
|
Params.CheckParams
Check params which controls check result returned by policy backend.
Field |
Type |
Description |
Required |
checkAllow |
bool |
Controls that request should be allowed or not.
|
No
|
validDuration |
Duration |
Valid duration of the check result.
|
No
|
validCount |
int64 |
Valid request count of the check result.
|
No
|