(f func(client *rpc.Client) error)
| 22 | } |
| 23 | |
| 24 | func (c *cliConnection) withClientDo(f func(client *rpc.Client) error) error { |
| 25 | client, err := rpc.Dial("tcp", "127.0.0.1:"+c.cliServerPort) |
| 26 | if err != nil { |
| 27 | return err |
| 28 | } |
| 29 | defer client.Close() |
| 30 | |
| 31 | return f(client) |
| 32 | } |
| 33 | |
| 34 | func (c *cliConnection) sendPluginMetadataToCliServer(metadata PluginMetadata) { |
| 35 | var success bool |
no test coverage detected