Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Port is the port number for the reverse proxy. Port int `envconfig:"PORT" default:"8080"` // APIHost is the destination host to which requests will be proxied. APIHost string `envconfig:"API_HOST" required:"true"` }
Config is a struct for configuring the proxy server.
type Middleware ¶
Middleware describes the signature of a middleware function that can be applied to the proxy handler.
Click to show internal directories.
Click to hide internal directories.