MCPcopy Create free account
hub / github.com/golang/groupcache / flightGroup

Interface flightGroup

groupcache.go:183–186  ·  view source on GitHub ↗

flightGroup is defined as an interface which flightgroup.Group satisfies. We define this so that we may test with an alternate implementation.

Source from the content-addressed store, hash-verified

181// satisfies. We define this so that we may test with an alternate
182// implementation.
183type flightGroup interface {
184 // Done is called when Do is done.
185 Do(key string, fn func() (interface{}, error)) (interface{}, error)
186}
187
188// Stats are per-group statistics.
189type Stats struct {

Callers 8

TestGetDupSuppressStringFunction · 0.65
TestGetDupSuppressProtoFunction · 0.65
TestCachingFunction · 0.65
TestCacheEvictionFunction · 0.65
TestPeersFunction · 0.65
DoMethod · 0.65
newGroupFunction · 0.65
GetMethod · 0.65

Implementers 2

orderedFlightGroupgroupcache_test.go
Groupsingleflight/singleflight.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…