Caller resolves an operation across every loaded spec. Returns nil when no spec contains an operation with that id.
(specKey, operationID string)
| 118 | // Caller resolves an operation across every loaded spec. Returns nil |
| 119 | // when no spec contains an operation with that id. |
| 120 | func (r *Runtime) Caller(specKey, operationID string) (*Caller, bool) { |
| 121 | if r == nil { |
| 122 | return nil, false |
| 123 | } |
| 124 | rt, ok := r.specs[specKey] |
| 125 | if !ok { |
| 126 | return nil, false |
| 127 | } |
| 128 | return rt.Caller(operationID) |
| 129 | } |
| 130 | |
| 131 | // Spec returns the runtime for a spec key. |
| 132 | func (r *Runtime) Spec(specKey string) (*SpecRuntime, bool) { |
no outgoing calls