MCPcopy
hub / github.com/go-kit/kit / Get

Method Get

sd/etcd/client_test.go:85–90  ·  view source on GitHub ↗

Get return the content of getres or nil, nil

(ctx context.Context, key string, opts *etcd.GetOptions)

Source from the content-addressed store, hash-verified

83
84// Get return the content of getres or nil, nil
85func (fka *fakeKeysAPI) Get(ctx context.Context, key string, opts *etcd.GetOptions) (*etcd.Response, error) {
86 if fka.getres == nil {
87 return nil, nil
88 }
89 return fka.getres.resp, fka.getres.err
90}
91
92// Set is not used in the tests
93func (fka *fakeKeysAPI) Set(ctx context.Context, key, value string, opts *etcd.SetOptions) (*etcd.Response, error) {

Callers 15

TestContextToHTTPFunction · 0.45
HTTPToContextFunction · 0.45
TestServerBadDecodeFunction · 0.45
TestServerBadEndpointFunction · 0.45
TestServerBadEncodeFunction · 0.45
TestServerErrorEncoderFunction · 0.45
TestMultipleServerBeforeFunction · 0.45
TestMultipleServerAfterFunction · 0.45
TestServerFinalizerFunction · 0.45
TestEncodeJSONResponseFunction · 0.45
TestAddMultipleHeadersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected