MCPcopy Create free account
hub / github.com/Kong/insomnia / loadMethodsFromFilePath

Function loadMethodsFromFilePath

packages/insomnia/src/main/ipc/grpc.ts:104–110  ·  view source on GitHub ↗
(filePath: string, includeDirs: string[])

Source from the content-addressed store, hash-verified

102}
103
104const loadMethodsFromFilePath = async (filePath: string, includeDirs: string[]): Promise<MethodDefs[]> => {
105 const definition = await protoLoader.load(filePath, {
106 ...grpcOptions,
107 includeDirs,
108 });
109 return getMethodsFromPackageDefinition(definition);
110};
111const loadMethods = async (protoFileId: string): Promise<GrpcMethodInfo[]> => {
112 const protoFile = await services.protoFile.getById(protoFileId);
113 invariant(protoFile, `Proto file ${protoFileId} not found`);

Callers 2

loadMethodsFunction · 0.85
getSelectedMethodFunction · 0.85

Calls 1

Tested by

no test coverage detected