MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / getFunc

Method getFunc

fs/runtime/grpc/grpc_func.go:185–193  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

183}
184
185func (s *FSSReconcileServer) getFunc(name string) (*FuncRuntime, error) {
186 s.functionsMu.Lock()
187 defer s.functionsMu.Unlock()
188 instance, ok := s.functions[name]
189 if !ok {
190 return nil, fmt.Errorf("function not found")
191 }
192 return instance, nil
193}
194
195func (s *FSSReconcileServer) removeFunction(name string) {
196 s.functionsMu.Lock()

Callers 2

ProcessMethod · 0.80
getFunctionRuntimeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected