(key string, opts ...clientv3.OpOption)
| 879 | } |
| 880 | |
| 881 | func (e *EtcdStore) get(key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) { |
| 882 | ctx, cancel := context.WithTimeout(e.rawClient.Ctx(), DefaultRequestTimeout) |
| 883 | defer cancel() |
| 884 | |
| 885 | return clientv3.NewKV(e.rawClient).Get(ctx, key, opts...) |
| 886 | } |
| 887 | |
| 888 | func (e *EtcdStore) getPB(prefix string, id uint64, value pb) error { |
| 889 | data, err := e.getValue(getKey(prefix, id)) |
no test coverage detected