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 * or empty to match any host (* without a Prefix must be the last rule) Host string // Prefix or empty for any Prefix string // Destination url string. Destination JSONURL }
Route configuration. Does Host/Prefix match to destination, see Match* functions. (only host,port,scheme part of Destination URL are used).
func (*Route) MatchHostAndPath ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.