Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONURL ¶ added in v0.2.0
func (*JSONURL) UnmarshalJSON ¶ added in v0.2.0
UnmarshalJSON is needed to get a URL from json until golang does it on its own.
type Route ¶
type Route struct { // Host or * to match any host (* must be the last rule) Host string // Port or 0/not specified for any port Port uint // Destination url string. Destination JSONURL }
Route configuration. for now only does Host match to destination, see Director function. (only host,port,scheme part of Destination URL are used)
Click to show internal directories.
Click to hide internal directories.