(key string, value string)
| 115 | } |
| 116 | |
| 117 | func (c *Client) Append(key string, value string) error { |
| 118 | client, err := newGrpcClient(c.Addr) |
| 119 | if err != nil { |
| 120 | return err |
| 121 | } |
| 122 | resp, err := client.Append(context.Background(), &gstring.AppendRequest{Key: key, Value: value}) |
| 123 | if err != nil { |
| 124 | return err |
| 125 | } |
| 126 | if !resp.Ok { |
| 127 | return errors.New("Append operation failed") |
| 128 | } |
| 129 | return nil |
| 130 | } |
| 131 | |
| 132 | func (c *Client) GetSet(key string, value interface{}) (interface{}, error) { |
| 133 | client, err := newGrpcClient(c.Addr) |
nothing calls this directly
no test coverage detected