---
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 adpater for integration test,
supports checknothing and keyval template.
Field |
Type |
Description |
checkParams |
Params.CheckParams |
Specify check related params.
|
table |
map<string, string> |
Specify route directive related params.
|
Params.CheckParams
Check params which controls check result returned by policy backend.
Field |
Type |
Description |
checkAllow |
bool |
Controls that request should be allowed or not.
|
validDuration |
google.protobuf.Duration |
Valid duration of the check result.
|
validCount |
int64 |
Valid request count of the check result.
|