Caller returns the executor for an operationId, or nil + false when the operation either doesn't exist on this spec or was skipped during classification.
(operationID string)
| 58 | // the operation either doesn't exist on this spec or was skipped during |
| 59 | // classification. |
| 60 | func (r *SpecRuntime) Caller(operationID string) (*Caller, bool) { |
| 61 | if r == nil { |
| 62 | return nil, false |
| 63 | } |
| 64 | c, ok := r.callers[operationID] |
| 65 | return c, ok |
| 66 | } |
| 67 | |
| 68 | // Spec returns the underlying parsed spec. Useful for tests and for |
| 69 | // the bridge layer that needs to enumerate operations during resolver |
no outgoing calls