In the past, when people want to add support for new dynamic modules, or update current existing directive definitions in nginx-go-crossplane, they always need to look at documents or source codes and find the definition of directives.
In this PR, we provide a command line tool, which can read from a directory containing source codes, and generate the corresponding supporting file. The supporting file will include a map from directives to their bitmask definitions, and a public MatchFunc to match them. It will be in the same format of currently existing supporting files like analyze_otel_directives.go, analyze_oss_latest_directives.go.
Checklist
Before creating a PR, run through this checklist and mark each as complete.
Proposed changes
In the past, when people want to add support for new dynamic modules, or update current existing directive definitions in nginx-go-crossplane, they always need to look at documents or source codes and find the definition of directives.
In this PR, we provide a command line tool, which can read from a directory containing source codes, and generate the corresponding supporting file. The supporting file will include a map from directives to their bitmask definitions, and a public
MatchFunc
to match them. It will be in the same format of currently existing supporting files likeanalyze_otel_directives.go
,analyze_oss_latest_directives.go
.Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentREADME.md
)