Versions in this module Expand all Collapse all v1 v1.0.0 Apr 20, 2023 Changes in this version + var DefaultFile = "routes.json" + var DefaultLogger = logrus.New() + var DefaultPath = []string + func NewRouter(opts ...Option) plugin.Plugin + type Option func(o *Options) + func Config(c config.Config) Option + type Options struct + Config config.Config + type Request struct + Header map[string]string + Host string + Method string + Path string + Query map[string]string + type Response struct + Body []byte + Header map[string]string + Status string + StatusCode int + type Route struct + Insecure bool + Priority int + ProxyURL URL + Request Request + Response Response + Type string + Weight float64 + func (r Route) Match(req *http.Request) bool + func (r Route) Write(w http.ResponseWriter, req *http.Request) + type Routes struct + Routes []Route + type URL struct + Host string + Path string + Scheme string