MCPcopy
hub / github.com/golang/groupcache / GetterFunc

FuncType GetterFunc

groupcache.go:52–52  ·  view source on GitHub ↗

A GetterFunc implements Getter with a function.

func(ctx context.Context, key string, dest Sink) error

Source from the content-addressed store, hash-verified

50
51// A GetterFunc implements Getter with a function.
52type GetterFunc func(ctx context.Context, key string, dest Sink) error
53
54func (f GetterFunc) Get(ctx context.Context, key string, dest Sink) error {
55 return f(ctx, key, dest)

Callers 5

testSetupFunction · 0.85
TestPeersFunction · 0.85
TestNoDedupFunction · 0.85
TestHTTPPoolFunction · 0.85
beChildForTestHTTPPoolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…