MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / Remove

Function Remove

internal/providers/store.go:116–125  ·  view source on GitHub ↗

Remove deletes the endpoint named name. Returns false when no entry by that name existed.

(file *File, name string)

Source from the content-addressed store, hash-verified

114// Remove deletes the endpoint named name. Returns false when no entry by
115// that name existed.
116func Remove(file *File, name string) bool {
117 if file == nil || file.Endpoints == nil {
118 return false
119 }
120 if _, ok := file.Endpoints[name]; !ok {
121 return false
122 }
123 delete(file.Endpoints, name)
124 return true
125}
126
127// Rename moves an endpoint key from oldName to newName. Errors when source
128// is missing or destination already exists, so the caller never accidentally

Callers 2

RemoveProviderMethod · 0.92

Calls

no outgoing calls

Tested by 1