Documentation ¶ Index ¶ type Backend type Route func (r *Route) Rewrite(path string) string type Service Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Backend ¶ type Backend struct { Service service.Service `config:"service"` } type Route ¶ type Route struct { Name string `config:"name"` Path string `config:"path"` Backend Backend `config:"backend"` // PathType is the path type of route, options: prefix, regex PathType string `config:"path_type,default=prefix"` } func (*Route) Rewrite ¶ func (r *Route) Rewrite(path string) string type Service ¶ added in v1.4.1 type Service = service.Service Source Files ¶ View all Source files rewrite.goroute.go Click to show internal directories. Click to hide internal directories.