Documentation
¶
Overview ¶
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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
Generate returns the whole nginx.conf as the configuration and the script it loads, proxyfile.js. Its error is a generator.Refused that names each value whose nginx form is longer than nginx reads, by its key; any other error means a route goes to a service that is not declared or has no port of the kind the route needs, a pattern holds what the pattern writer does not know, a rate limit has no rate nginx writes (rateOf), which nginx's declaration refuses first, or a token the file writes is longer than nginx reads although no value was refused: a bug in proxyfile.
Types ¶
This section is empty.