(id uint64)
| 263 | } |
| 264 | |
| 265 | func (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 | |
| 281 | func (c *client) GetAPI(id uint64) (*metapb.API, error) { |
| 282 | meta, err := c.getMetaClient() |
nothing calls this directly
no test coverage detected