Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
proxyfile
command
Command proxyfile writes a proxy's configuration from a proxyfile.
|
Command proxyfile writes a proxy's configuration from a proxyfile. |
|
conformance
|
|
|
stub
command
Stub plays every backend of examples/full, its auth check, its DNS resolver and its tracing collector for the conformance battery.
|
Stub plays every backend of examples/full, its auth check, its DNS resolver and its tracing collector for the conformance battery. |
|
internal
|
|
|
cli
Package cli is the proxyfile program: its commands, flags, messages and exit codes.
|
Package cli is the proxyfile program: its commands, flags, messages and exit codes. |
|
envoy
Package envoy writes the Envoy configuration of a gateway: it fills the embedded fragments, splices them into one YAML tree and encodes that tree.
|
Package envoy writes the Envoy configuration of a gateway: it fills the embedded fragments, splices them into one YAML tree and encodes that tree. |
|
figure
Package figure draws the figure the README opens with: the proxyfile a person writes beside the whole configuration proxyfile generates from it.
|
Package figure draws the figure the README opens with: the proxyfile a person writes beside the whole configuration proxyfile generates from it. |
|
format
Package format holds the one description of each input file and checks a file's tree against it.
|
Package format holds the one description of each input file and checks a file's tree against it. |
|
generator
Package generator holds what every proxy's generator reads the same way: the input, the files a generator returns, the refusals of the values it cannot write, the header line, and the rules that read the model alike for every proxy.
|
Package generator holds what every proxy's generator reads the same way: the input, the files a generator returns, the refusals of the values it cannot write, the header line, and the rules that read the model alike for every proxy. |
|
haproxy
Package haproxy writes the HAProxy configuration of a gateway, for HAProxy 3.2 and 3.4: it builds a view of the gateway, every value from the proxyfile in it already quoted, and executes the embedded template with it.
|
Package haproxy writes the HAProxy configuration of a gateway, for HAProxy 3.2 and 3.4: it builds a view of the gateway, every value from the proxyfile in it already quoted, and executes the embedded template with it. |
|
input
Package input holds the reading step the readers of the input files share: reading a file as far as a tree its description accepts.
|
Package input holds the reading step the readers of the input files share: reading a file as far as a tree its description accepts. |
|
nginx
Package nginx writes the nginx configuration of a gateway, which picks the route of each request as the Envoy configuration of the same input does and sends the request to the same service, and the script beside it, which reads what nginx's own directives cannot: the name of each header of a request.
|
Package nginx writes the nginx configuration of a gateway, which picks the route of each request as the Envoy configuration of the same input does and sends the request to the same service, and the script beside it, which reads what nginx's own directives cannot: the name of each header of a request. |
|
origins
Package origins reads the browser origins: the CORS settings every environment shares and, for each environment, its hosts and the browser origins it admits.
|
Package origins reads the browser origins: the CORS settings every environment shares and, for each environment, its hosts and the browser origins it admits. |
|
pcre
Package pcre writes a route's pattern, which the reader checks with Go's regexp and Envoy runs with RE2, as PCRE2 reads it in the byte mode nginx compiles its regular expressions in: from Go's own parse of the pattern, so PCRE2 is never handed RE2 text it reads another way ({,3}, { 2 } and \v are text or other characters in RE2 and repetitions or vertical space in PCRE2, and \Q with no \E would quote the text written after the pattern).
|
Package pcre writes a route's pattern, which the reader checks with Go's regexp and Envoy runs with RE2, as PCRE2 reads it in the byte mode nginx compiles its regular expressions in: from Go's own parse of the pattern, so PCRE2 is never handed RE2 text it reads another way ({,3}, { 2 } and \v are text or other characters in RE2 and repetitions or vertical space in PCRE2, and \Q with no \E would quote the text written after the pattern). |
|
protofiles
Package protofiles reads a gateway's RPC methods from .proto files: it compiles them in memory and returns each method that carries a method option named by its full name, with that option's action and reports.
|
Package protofiles reads a gateway's RPC methods from .proto files: it compiles them in memory and returns each method that carries a method option named by its full name, with that option's action and reports. |
|
quote
Package quote writes text as a JSON string, the form the RPC table and the generated Envoy file both carry.
|
Package quote writes text as a JSON string, the form the RPC table and the generated Envoy file both carry. |
|
read
Package read turns a proxyfile into the model, or into the problems that stop the run.
|
Package read turns a proxyfile into the model, or into the problems that stop the run. |
|
render
Package render reads every input of one run and returns every output, in memory, so a caller writes nothing when any input has a problem.
|
Package render reads every input of one run and returns every output, in memory, so a caller writes nothing when any input has a problem. |
|
rpc
Package rpc reads the RPC methods, from the proxyfile's rpc.methods or from a methods file, gives each method the service the proxyfile's rpc entry maps it to, and writes the RPC table: the routes as JSON, one object per line.
|
Package rpc reads the RPC methods, from the proxyfile's rpc.methods or from a methods file, gives each method the service the proxyfile's rpc entry maps it to, and writes the RPC table: the routes as JSON, one object per line. |
|
testsupport
Package testsupport holds the helpers the tests of several packages share.
|
Package testsupport holds the helpers the tests of several packages share. |
|
tree
Package tree is the boundary between a file's syntax and everything that reads it.
|
Package tree is the boundary between a file's syntax and everything that reads it. |
Click to show internal directories.
Click to hide internal directories.