MCPcopy
hub / github.com/dosco/graphjin / Caller

Method Caller

core/openapi/runtime.go:120–129  ·  view source on GitHub ↗

Caller resolves an operation across every loaded spec. Returns nil when no spec contains an operation with that id.

(specKey, operationID string)

Source from the content-addressed store, hash-verified

118// Caller resolves an operation across every loaded spec. Returns nil
119// when no spec contains an operation with that id.
120func (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.
132func (r *Runtime) Spec(specKey string) (*SpecRuntime, bool) {

Callers 2

TestEndToEndLoadAndCallFunction · 0.95
newOpenAPIResolverFnMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestEndToEndLoadAndCallFunction · 0.76