Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { Return *Return Path string ProxyPass string HTTPMatchVar string ProxySetHeaders []Header Internal bool }
Location holds all configuration for an HTTP location.
type Map ¶
type Map struct { Source string Variable string Parameters []MapParameter }
Map defines an NGINX map.
type MapParameter ¶
Parameter defines a Value and Result pair in a Map.
type Server ¶
type Server struct { SSL *SSL ServerName string Locations []Location IsDefaultHTTP bool IsDefaultSSL bool Port int32 }
Server holds all configuration for an HTTP server.
type SplitClient ¶
type SplitClient struct { VariableName string Distributions []SplitClientDistribution }
SplitClient holds all configuration for an HTTP split client.
type SplitClientDistribution ¶
SplitClientDistribution maps Percentage to Value in a SplitClient.
type StatusCode ¶
type StatusCode int
StatusCode is an HTTP status code.
const ( // StatusFound is the HTTP 302 status code. StatusFound StatusCode = 302 // StatusNotFound is the HTTP 404 status code. StatusNotFound StatusCode = 404 // StatusInternalServerError is the HTTP 500 status code. StatusInternalServerError StatusCode = 500 )
type Upstream ¶
type Upstream struct { Name string Servers []UpstreamServer }
Upstream holds all configuration for an HTTP upstream.
type UpstreamServer ¶
type UpstreamServer struct {
Address string
}
UpstreamServer holds all configuration for an HTTP upstream server.
Click to show internal directories.
Click to hide internal directories.