()
| 115 | } |
| 116 | |
| 117 | func (r Route) String() string { |
| 118 | var handlersRaw strings.Builder |
| 119 | handlersRaw.WriteByte('[') |
| 120 | for _, hr := range r.HandlersRaw { |
| 121 | handlersRaw.WriteByte(' ') |
| 122 | handlersRaw.WriteString(string(hr)) |
| 123 | } |
| 124 | handlersRaw.WriteByte(']') |
| 125 | |
| 126 | return fmt.Sprintf(`{Group:"%s" MatcherSetsRaw:%s HandlersRaw:%s Terminal:%t}`, |
| 127 | r.Group, r.MatcherSetsRaw, handlersRaw.String(), r.Terminal) |
| 128 | } |
| 129 | |
| 130 | // Provision sets up both the matchers and handlers in the route. |
| 131 | func (r *Route) Provision(ctx caddy.Context, metrics *Metrics) error { |
no outgoing calls