MCPcopy
hub / github.com/grafana/dskit / cas

Function cas

kv/memberlist/memberlist_client_test.go:229–231  ·  view source on GitHub ↗
(kv *Client, key string, updateFn func(*data) (*data, bool, error))

Source from the content-addressed store, hash-verified

227}
228
229func cas(kv *Client, key string, updateFn func(*data) (*data, bool, error)) error {
230 return casWithErr(context.Background(), kv, key, updateFn)
231}
232
233func casWithErr(ctx context.Context, kv *Client, key string, updateFn func(*data) (*data, bool, error)) error {
234 fn := func(in interface{}) (out interface{}, retry bool, err error) {

Callers 12

TestBasicGetAndCasFunction · 0.85
TestCASNoOutputFunction · 0.85
TestCASNoChangeFunction · 0.85
TestMultipleCASFunction · 0.85
TestDeleteFunction · 0.85
runClientFunction · 0.85
TestFastJoinFunction · 0.85

Calls 1

casWithErrFunction · 0.85

Tested by

no test coverage detected