(ctx context.Context, id string)
| 184 | } |
| 185 | |
| 186 | func (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 | |
| 193 | func (s *nodeService) ServeHTTP(w http.ResponseWriter, r *http.Request) { |
| 194 | vars := mux.Vars(r) |