Documentation ¶
Index ¶
- func New(opts ...Option) gin.HandlerFunc
- func WithDebug() func(h *handler)
- type Option
- func WithGlobalFieldPolicy(p xss.Policy, fields ...string) Option
- func WithGlobalPolicy(p xss.Policy) Option
- func WithGlobalSkipFields(fields ...string) Option
- func WithRouteFieldPolicy(routeRule string, policy xss.Policy, fields ...string) Option
- func WithRoutePolicy(routeRule string, policy xss.Policy, skipFields ...string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(opts ...Option) gin.HandlerFunc
Types ¶
type Option ¶
type Option func(*handler)
func WithGlobalFieldPolicy ¶
WithGlobalFieldPolicy 指定全局字段过滤策略
func WithGlobalSkipFields ¶
WithGlobalSkipFields 指定全局忽略字段
func WithRouteFieldPolicy ¶
WithRouteFieldPolicy 指定路由的字段策略 routeRule 路由规则,如果路由包含该字符串则匹配成功
Click to show internal directories.
Click to hide internal directories.