MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / LookupFile

Method LookupFile

internal/descriptor/registry.go:407–413  ·  view source on GitHub ↗

LookupFile looks up a file by name.

(name string)

Source from the content-addressed store, hash-verified

405
406// LookupFile looks up a file by name.
407func (r *Registry) LookupFile(name string) (*File, error) {
408 f, ok := r.files[name]
409 if !ok {
410 return nil, fmt.Errorf("no such file given: %s", name)
411 }
412 return f, nil
413}
414
415func (r *Registry) GetUseProto3FieldSemantics() bool {
416 return r.useProto3FieldSemantics

Callers 8

mainFunction · 0.95
requireGenerateFunction · 0.95
TestGenerateXGoTypeFunction · 0.95
mainFunction · 0.95
buildBodyImportTestFileFunction · 0.95
TestResolveFieldPathFunction · 0.95

Calls

no outgoing calls

Tested by 6

requireGenerateFunction · 0.76
TestGenerateXGoTypeFunction · 0.76
buildBodyImportTestFileFunction · 0.76
TestResolveFieldPathFunction · 0.76