Versions in this module Expand all Collapse all v1 v1.1.1 May 4, 2019 v1.1.0 May 4, 2019 Changes in this version type RouteRule + WebSocketOptions relay.Options v1.0.0 Dec 23, 2018 Changes in this version + func ConvertRules(routes []RouteRuleConfig) (routeRules *[]RouteRule, err error) + func RedirectRequest(r *http.Request, newURL string) (newRequest *http.Request, err error) + func RouteAll(rules []RouteRule) func(http.ResponseWriter, *http.Request) + type Config struct + Routes []RouteRuleConfig + type RewriteRule struct + Input *regexp.Regexp + Output string + func NewRewriteRule(config RewriteRuleConfig) (rule *RewriteRule, err error) + type RewriteRuleConfig struct + Input string + Output string + type RouteRule struct + Destination string + Match *regexp.Regexp + Rewrite RewriteRule + func NewRouteRule(config RouteRuleConfig) (rule *RouteRule, err error) + func (rule RouteRule) RewriteLocation(path string) string + func (rule RouteRule) RewritePath(path string) string + type RouteRuleConfig struct + Destination string + Match string + Rewrite RewriteRuleConfig