Delete implements kv.Delete.
(ctx context.Context, key string)
| 366 | |
| 367 | // Delete implements kv.Delete. |
| 368 | func (c *Client) Delete(ctx context.Context, key string) error { |
| 369 | _, err := c.kv.Delete(key, writeOptions.WithContext(ctx)) |
| 370 | return err |
| 371 | } |
| 372 | |
| 373 | func checkLastIndex(index, metaLastIndex uint64) (newIndex uint64, skip bool) { |
| 374 | // See https://www.consul.io/api/features/blocking.html#implementation-details for logic behind these checks. |