(id uint64)
| 279 | } |
| 280 | |
| 281 | func (c *client) GetAPI(id uint64) (*metapb.API, error) { |
| 282 | meta, err := c.getMetaClient() |
| 283 | if err != nil { |
| 284 | return nil, err |
| 285 | } |
| 286 | |
| 287 | rsp, err := meta.GetAPI(context.Background(), &rpcpb.GetAPIReq{ |
| 288 | ID: id, |
| 289 | }, grpc.FailFast(true)) |
| 290 | if err != nil { |
| 291 | return nil, err |
| 292 | } |
| 293 | |
| 294 | return rsp.API, nil |
| 295 | } |
| 296 | |
| 297 | func (c *client) GetAPIList(fn func(*metapb.API) bool) error { |
| 298 | meta, err := c.getMetaClient() |
nothing calls this directly
no test coverage detected