MCPcopy
hub / github.com/etcd-io/etcd / Get

Method Get

tests/robustness/client/client.go:90–93  ·  view source on GitHub ↗
(ctx context.Context, key string, opts ...clientv3.OpOption)

Source from the content-addressed store, hash-verified

88}
89
90func (c *RecordingClient) Get(ctx context.Context, key string, opts ...clientv3.OpOption) (*clientv3.GetResponse, error) {
91 op := clientv3.OpGet(key, opts...)
92 return c.Range(ctx, key, string(op.RangeBytes()), op.Rev(), op.Limit())
93}
94
95func (c *RecordingClient) Range(ctx context.Context, start, end string, revision, limit int64) (*clientv3.GetResponse, error) {
96 ops := []clientv3.OpOption{}

Callers 1

TriggerMethod · 0.95

Calls 4

RangeMethod · 0.95
RangeBytesMethod · 0.80
LimitMethod · 0.80
RevMethod · 0.65

Tested by

no test coverage detected