aiway-protocol 0.1.2

The aiway protocol lib
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! # 全局过滤器
//! 该配置为全局配置,对所有网关节点生效
//!

use crate::gateway::plugin::ConfiguredPlugin;
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Default, Serialize, Deserialize)]
pub struct GlobalFilter {
    /// 全局前置过滤器
    pub pre_filters: Vec<ConfiguredPlugin>,
    /// 全局后置过滤器
    pub post_filters: Vec<ConfiguredPlugin>,
}