luarestywaf

package
v0.0.0-...-cfb183a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewParser

NewParser creates a new CORS annotation parser

Types

type Config

type Config struct {
	Mode                     string   `json:"mode"`
	Debug                    bool     `json:"debug"`
	IgnoredRuleSets          []string `json:"ignored-rulesets"`
	ExtraRulesetString       string   `json:"extra-ruleset-string"`
	ScoreThreshold           int      `json:"score-threshold"`
	AllowUnknownContentTypes bool     `json:"allow-unknown-content-types"`
	ProcessMultipartBody     bool     `json:"process-multipart-body"`
}

Config returns lua-resty-waf configuration for an Ingress rule

func (*Config) Equal

func (e1 *Config) Equal(e2 *Config) bool

Equal tests for equality between two Config types

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL