MCPcopy
hub / github.com/fagongzi/manba / RemoveAPI

Method RemoveAPI

pkg/client/client.go:265–279  ·  view source on GitHub ↗
(id uint64)

Source from the content-addressed store, hash-verified

263}
264
265func (c *client) RemoveAPI(id uint64) error {
266 meta, err := c.getMetaClient()
267 if err != nil {
268 return err
269 }
270
271 _, err = meta.RemoveAPI(context.Background(), &rpcpb.RemoveAPIReq{
272 ID: id,
273 }, grpc.FailFast(true))
274 if err != nil {
275 return err
276 }
277
278 return nil
279}
280
281func (c *client) GetAPI(id uint64) (*metapb.API, error) {
282 meta, err := c.getMetaClient()

Callers

nothing calls this directly

Calls 2

getMetaClientMethod · 0.95
RemoveAPIMethod · 0.65

Tested by

no test coverage detected