Validate makes sure the service is valid.
()
| 205 | |
| 206 | // Validate makes sure the service is valid. |
| 207 | func (svc *HTTPServiceExpr) Validate() error { |
| 208 | verr := new(eval.ValidationErrors) |
| 209 | |
| 210 | // Validate attributes |
| 211 | svc.validateAttributes(verr) |
| 212 | |
| 213 | // Validate parent service |
| 214 | svc.validateParent(verr) |
| 215 | |
| 216 | // Validate canonical endpoint |
| 217 | svc.validateCanonicalEndpoint(verr) |
| 218 | |
| 219 | // Validate errors |
| 220 | svc.validateErrors(verr) |
| 221 | |
| 222 | // Validate transport compatibility |
| 223 | svc.validateTransports(verr) |
| 224 | |
| 225 | return verr |
| 226 | } |
| 227 | |
| 228 | // validateAttributes validates service parameters and headers |
| 229 | func (svc *HTTPServiceExpr) validateAttributes(verr *eval.ValidationErrors) { |
nothing calls this directly
no test coverage detected