(configuration Configuration)
| 40 | } |
| 41 | |
| 42 | func NewClient(configuration Configuration) (client *Client, err error) { |
| 43 | conn, err := dial("unix", configuration.GetSocketFile()) |
| 44 | if err != nil { |
| 45 | return |
| 46 | } |
| 47 | client = &Client{ |
| 48 | conn: conn, |
| 49 | reader: bufio.NewReader(conn), |
| 50 | } |
| 51 | return |
| 52 | } |
| 53 | |
| 54 | func (c *Client) Request(req interface{}, rsp interface{}) (err error) { |
| 55 | reqString := MarshalRequest(req) |
no test coverage detected