MCPcopy Create free account
hub / github.com/KOSASIH/skybridge / DeleteNode

Method DeleteNode

src/api/node/node.go:186–191  ·  view source on GitHub ↗
(ctx context.Context, id string)

Source from the content-addressed store, hash-verified

184}
185
186func (s *nodeService) DeleteNode(ctx context.Context, id string) error {
187 s.mu.Lock()
188 defer s.mu.Unlock()
189 delete(s.nodes, id)
190 return nil
191}
192
193func (s *nodeService) ServeHTTP(w http.ResponseWriter, r *http.Request) {
194 vars := mux.Vars(r)

Callers 1

ServeHTTPMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected