SYMBOL INDEX (234 symbols across 16 files) FILE: byteview.go type ByteView (line 32) | type ByteView struct method Len (line 39) | func (v ByteView) Len() int { method ByteSlice (line 47) | func (v ByteView) ByteSlice() []byte { method String (line 55) | func (v ByteView) String() string { method At (line 63) | func (v ByteView) At(i int) byte { method Slice (line 71) | func (v ByteView) Slice(from, to int) ByteView { method SliceFrom (line 79) | func (v ByteView) SliceFrom(from int) ByteView { method Copy (line 87) | func (v ByteView) Copy(dest []byte) int { method Equal (line 96) | func (v ByteView) Equal(b2 ByteView) bool { method EqualString (line 105) | func (v ByteView) EqualString(s string) bool { method EqualBytes (line 123) | func (v ByteView) EqualBytes(b2 []byte) bool { method Reader (line 140) | func (v ByteView) Reader() io.ReadSeeker { method ReadAt (line 148) | func (v ByteView) ReadAt(p []byte, off int64) (n int, err error) { method WriteTo (line 163) | func (v ByteView) WriteTo(w io.Writer) (n int64, err error) { FILE: byteview_test.go function TestByteView (line 27) | func TestByteView(t *testing.T) { function of (line 60) | func of(x interface{}) ByteView { function TestByteViewEqual (line 67) | func TestByteViewEqual(t *testing.T) { function TestByteViewSlice (line 103) | func TestByteViewSlice(t *testing.T) { function min (line 142) | func min(a, b int) int { FILE: consistenthash/consistenthash.go type Hash (line 26) | type Hash type Map (line 28) | type Map struct method IsEmpty (line 48) | func (m *Map) IsEmpty() bool { method Add (line 53) | func (m *Map) Add(keys ...string) { method Get (line 65) | func (m *Map) Get(key string) string { function New (line 35) | func New(replicas int, fn Hash) *Map { FILE: consistenthash/consistenthash_test.go function TestHashing (line 25) | func TestHashing(t *testing.T) { function TestConsistency (line 68) | func TestConsistency(t *testing.T) { function BenchmarkGet8 (line 89) | func BenchmarkGet8(b *testing.B) { benchmarkGet(b, 8) } function BenchmarkGet32 (line 90) | func BenchmarkGet32(b *testing.B) { benchmarkGet(b, 32) } function BenchmarkGet128 (line 91) | func BenchmarkGet128(b *testing.B) { benchmarkGet(b, 128) } function BenchmarkGet512 (line 92) | func BenchmarkGet512(b *testing.B) { benchmarkGet(b, 512) } function benchmarkGet (line 94) | func benchmarkGet(b *testing.B, shards int) { FILE: groupcache.go type Getter (line 41) | type Getter interface type GetterFunc (line 52) | type GetterFunc method Get (line 54) | func (f GetterFunc) Get(ctx context.Context, key string, dest Sink) er... function GetGroup (line 68) | func GetGroup(name string) *Group { function NewGroup (line 84) | func NewGroup(name string, cacheBytes int64, getter Getter) *Group { function newGroup (line 89) | func newGroup(name string, cacheBytes int64, getter Getter, peers PeerPi... function RegisterNewGroupHook (line 118) | func RegisterNewGroupHook(fn func(*Group)) { function RegisterServerStart (line 127) | func RegisterServerStart(fn func()) { function callInitPeerServer (line 134) | func callInitPeerServer() { type Group (line 142) | type Group struct method Name (line 202) | func (g *Group) Name() string { method initPeers (line 206) | func (g *Group) initPeers() { method Get (line 212) | func (g *Group) Get(ctx context.Context, key string, dest Sink) error { method load (line 241) | func (g *Group) load(ctx context.Context, key string, dest Sink) (valu... method getLocally (line 300) | func (g *Group) getLocally(ctx context.Context, key string, dest Sink)... method getFromPeer (line 308) | func (g *Group) getFromPeer(ctx context.Context, peer ProtoGetter, key... method lookupCache (line 334) | func (g *Group) lookupCache(key string) (value ByteView, ok bool) { method populateCache (line 346) | func (g *Group) populateCache(key string, value ByteView, cache *cache) { method CacheStats (line 386) | func (g *Group) CacheStats(which CacheType) CacheStats { type flightGroup (line 183) | type flightGroup interface type Stats (line 189) | type Stats struct type CacheType (line 372) | type CacheType constant MainCache (line 377) | MainCache CacheType = iota + 1 constant HotCache (line 382) | HotCache type cache (line 400) | type cache struct method stats (line 408) | func (c *cache) stats() CacheStats { method add (line 420) | func (c *cache) add(key string, value ByteView) { method get (line 436) | func (c *cache) get(key string) (value ByteView, ok bool) { method removeOldest (line 451) | func (c *cache) removeOldest() { method bytes (line 459) | func (c *cache) bytes() int64 { method items (line 465) | func (c *cache) items() int64 { method itemsLocked (line 471) | func (c *cache) itemsLocked() int64 { type AtomicInt (line 479) | type AtomicInt method Add (line 482) | func (i *AtomicInt) Add(n int64) { method Get (line 487) | func (i *AtomicInt) Get() int64 { method String (line 491) | func (i *AtomicInt) String() string { type CacheStats (line 496) | type CacheStats struct FILE: groupcache_test.go constant stringGroupName (line 54) | stringGroupName = "string-group" constant protoGroupName (line 55) | protoGroupName = "proto-group" constant testMessageType (line 56) | testMessageType = "google3/net/groupcache/go/test_proto.TestMessage" constant fromChan (line 57) | fromChan = "from-chan" constant cacheSize (line 58) | cacheSize = 1 << 20 function testSetup (line 61) | func testSetup() { function TestGetDupSuppressString (line 84) | func TestGetDupSuppressString(t *testing.T) { function TestGetDupSuppressProto (line 126) | func TestGetDupSuppressProto(t *testing.T) { function countFills (line 168) | func countFills(f func()) int64 { function TestCaching (line 174) | func TestCaching(t *testing.T) { function TestCacheEviction (line 189) | func TestCacheEviction(t *testing.T) { type fakePeer (line 229) | type fakePeer struct method Get (line 234) | func (p *fakePeer) Get(_ context.Context, in *pb.GetRequest, out *pb.G... type fakePeers (line 243) | type fakePeers method PickPeer (line 245) | func (p fakePeers) PickPeer(key string) (peer ProtoGetter, ok bool) { function TestPeers (line 254) | func TestPeers(t *testing.T) { function TestTruncatingByteSliceTarget (line 325) | func TestTruncatingByteSliceTarget(t *testing.T) { function TestAllocatingByteSliceTarget (line 344) | func TestAllocatingByteSliceTarget(t *testing.T) { type orderedFlightGroup (line 371) | type orderedFlightGroup struct method Do (line 378) | func (g *orderedFlightGroup) Do(key string, fn func() (interface{}, er... function TestNoDedup (line 388) | func TestNoDedup(t *testing.T) { function TestGroupStatsAlignment (line 448) | func TestGroupStatsAlignment(t *testing.T) { FILE: groupcachepb/groupcache.pb.go type GetRequest (line 16) | type GetRequest struct method Reset (line 22) | func (m *GetRequest) Reset() { *m = GetRequest{} } method String (line 23) | func (m *GetRequest) String() string { return proto.CompactTextString(... method ProtoMessage (line 24) | func (*GetRequest) ProtoMessage() {} method GetGroup (line 26) | func (m *GetRequest) GetGroup() string { method GetKey (line 33) | func (m *GetRequest) GetKey() string { type GetResponse (line 40) | type GetResponse struct method Reset (line 46) | func (m *GetResponse) Reset() { *m = GetResponse{} } method String (line 47) | func (m *GetResponse) String() string { return proto.CompactTextString... method ProtoMessage (line 48) | func (*GetResponse) ProtoMessage() {} method GetValue (line 50) | func (m *GetResponse) GetValue() []byte { method GetMinuteQps (line 57) | func (m *GetResponse) GetMinuteQps() float64 { function init (line 64) | func init() { FILE: http.go constant defaultBasePath (line 34) | defaultBasePath = "/_groupcache/" constant defaultReplicas (line 36) | defaultReplicas = 50 type HTTPPool (line 39) | type HTTPPool struct method Set (line 119) | func (p *HTTPPool) Set(peers ...string) { method PickPeer (line 130) | func (p *HTTPPool) PickPeer(key string) (ProtoGetter, bool) { method ServeHTTP (line 142) | func (p *HTTPPool) ServeHTTP(w http.ResponseWriter, r *http.Request) { type HTTPPoolOptions (line 62) | type HTTPPoolOptions struct function NewHTTPPool (line 80) | func NewHTTPPool(self string) *HTTPPool { function NewHTTPPoolOpts (line 91) | func NewHTTPPoolOpts(self string, o *HTTPPoolOptions) *HTTPPool { type httpGetter (line 186) | type httpGetter struct method Get (line 195) | func (h *httpGetter) Get(ctx context.Context, in *pb.GetRequest, out *... FILE: http_test.go function TestHTTPPool (line 41) | func TestHTTPPool(t *testing.T) { function testKeys (line 106) | func testKeys(n int) (keys []string) { function beChildForTestHTTPPool (line 114) | func beChildForTestHTTPPool() { function pickFreeAddr (line 133) | func pickFreeAddr(t *testing.T) string { function addrToURL (line 142) | func addrToURL(addr []string) []string { function awaitAddrReady (line 150) | func awaitAddrReady(t *testing.T, addr string, wg *sync.WaitGroup) { FILE: lru/lru.go type Cache (line 23) | type Cache struct method Add (line 56) | func (c *Cache) Add(key Key, value interface{}) { method Get (line 74) | func (c *Cache) Get(key Key) (value interface{}, ok bool) { method Remove (line 86) | func (c *Cache) Remove(key Key) { method RemoveOldest (line 96) | func (c *Cache) RemoveOldest() { method removeElement (line 106) | func (c *Cache) removeElement(e *list.Element) { method Len (line 116) | func (c *Cache) Len() int { method Clear (line 124) | func (c *Cache) Clear() { type Key (line 37) | type Key interface type entry (line 39) | type entry struct function New (line 47) | func New(maxEntries int) *Cache { FILE: lru/lru_test.go type simpleStruct (line 24) | type simpleStruct struct type complexStruct (line 29) | type complexStruct struct function TestGet (line 48) | func TestGet(t *testing.T) { function TestRemove (line 61) | func TestRemove(t *testing.T) { function TestEvict (line 76) | func TestEvict(t *testing.T) { FILE: peers.go type ProtoGetter (line 31) | type ProtoGetter interface type PeerPicker (line 37) | type PeerPicker interface type NoPeers (line 45) | type NoPeers struct method PickPeer (line 47) | func (NoPeers) PickPeer(key string) (peer ProtoGetter, ok bool) { retu... function RegisterPeerPicker (line 57) | func RegisterPeerPicker(fn func() PeerPicker) { function RegisterPerGroupPeerPicker (line 69) | func RegisterPerGroupPeerPicker(fn func(groupName string) PeerPicker) { function getPeers (line 76) | func getPeers(groupName string) PeerPicker { FILE: singleflight/singleflight.go type call (line 24) | type call struct type Group (line 32) | type Group struct method Do (line 41) | func (g *Group) Do(key string, fn func() (interface{}, error)) (interf... FILE: singleflight/singleflight_test.go function TestDo (line 28) | func TestDo(t *testing.T) { function TestDoErr (line 41) | func TestDoErr(t *testing.T) { function TestDoDupSuppress (line 55) | func TestDoDupSuppress(t *testing.T) { FILE: sinks.go type Sink (line 29) | type Sink interface function cloneBytes (line 45) | func cloneBytes(b []byte) []byte { function setSinkView (line 51) | func setSinkView(s Sink, v ByteView) error { function StringSink (line 69) | func StringSink(sp *string) Sink { type stringSink (line 73) | type stringSink struct method view (line 79) | func (s *stringSink) view() (ByteView, error) { method SetString (line 84) | func (s *stringSink) SetString(v string) error { method SetBytes (line 91) | func (s *stringSink) SetBytes(v []byte) error { method SetProto (line 95) | func (s *stringSink) SetProto(m proto.Message) error { function ByteViewSink (line 106) | func ByteViewSink(dst *ByteView) Sink { type byteViewSink (line 113) | type byteViewSink struct method setView (line 126) | func (s *byteViewSink) setView(v ByteView) error { method view (line 131) | func (s *byteViewSink) view() (ByteView, error) { method SetProto (line 135) | func (s *byteViewSink) SetProto(m proto.Message) error { method SetBytes (line 144) | func (s *byteViewSink) SetBytes(b []byte) error { method SetString (line 149) | func (s *byteViewSink) SetString(v string) error { function ProtoSink (line 155) | func ProtoSink(m proto.Message) Sink { type protoSink (line 161) | type protoSink struct method view (line 168) | func (s *protoSink) view() (ByteView, error) { method SetBytes (line 172) | func (s *protoSink) SetBytes(b []byte) error { method SetString (line 182) | func (s *protoSink) SetString(v string) error { method SetProto (line 193) | func (s *protoSink) SetProto(m proto.Message) error { function AllocatingByteSliceSink (line 214) | func AllocatingByteSliceSink(dst *[]byte) Sink { type allocBytesSink (line 218) | type allocBytesSink struct method view (line 223) | func (s *allocBytesSink) view() (ByteView, error) { method setView (line 227) | func (s *allocBytesSink) setView(v ByteView) error { method SetProto (line 237) | func (s *allocBytesSink) SetProto(m proto.Message) error { method SetBytes (line 245) | func (s *allocBytesSink) SetBytes(b []byte) error { method setBytesOwned (line 249) | func (s *allocBytesSink) setBytesOwned(b []byte) error { method SetString (line 259) | func (s *allocBytesSink) SetString(v string) error { function TruncatingByteSliceSink (line 273) | func TruncatingByteSliceSink(dst *[]byte) Sink { type truncBytesSink (line 277) | type truncBytesSink struct method view (line 282) | func (s *truncBytesSink) view() (ByteView, error) { method SetProto (line 286) | func (s *truncBytesSink) SetProto(m proto.Message) error { method SetBytes (line 294) | func (s *truncBytesSink) SetBytes(b []byte) error { method setBytesOwned (line 298) | func (s *truncBytesSink) setBytesOwned(b []byte) error { method SetString (line 311) | func (s *truncBytesSink) SetString(v string) error { FILE: testpb/test.pb.go type TestMessage (line 16) | type TestMessage struct method Reset (line 22) | func (m *TestMessage) Reset() { *m = TestMessage{} } method String (line 23) | func (m *TestMessage) String() string { return proto.CompactTextString... method ProtoMessage (line 24) | func (*TestMessage) ProtoMessage() {} method GetName (line 26) | func (m *TestMessage) GetName() string { method GetCity (line 33) | func (m *TestMessage) GetCity() string { type TestRequest (line 40) | type TestRequest struct method Reset (line 46) | func (m *TestRequest) Reset() { *m = TestRequest{} } method String (line 47) | func (m *TestRequest) String() string { return proto.CompactTextString... method ProtoMessage (line 48) | func (*TestRequest) ProtoMessage() {} method GetLower (line 52) | func (m *TestRequest) GetLower() string { method GetRepeatCount (line 59) | func (m *TestRequest) GetRepeatCount() int32 { constant Default_TestRequest_RepeatCount (line 50) | Default_TestRequest_RepeatCount int32 = 1 type TestResponse (line 66) | type TestResponse struct method Reset (line 71) | func (m *TestResponse) Reset() { *m = TestResponse{} } method String (line 72) | func (m *TestResponse) String() string { return proto.CompactTextStrin... method ProtoMessage (line 73) | func (*TestResponse) ProtoMessage() {} method GetValue (line 75) | func (m *TestResponse) GetValue() string { type CacheStats (line 82) | type CacheStats struct method Reset (line 91) | func (m *CacheStats) Reset() { *m = CacheStats{} } method String (line 92) | func (m *CacheStats) String() string { return proto.CompactTextString(... method ProtoMessage (line 93) | func (*CacheStats) ProtoMessage() {} method GetItems (line 95) | func (m *CacheStats) GetItems() int64 { method GetBytes (line 102) | func (m *CacheStats) GetBytes() int64 { method GetGets (line 109) | func (m *CacheStats) GetGets() int64 { method GetHits (line 116) | func (m *CacheStats) GetHits() int64 { method GetEvicts (line 123) | func (m *CacheStats) GetEvicts() int64 { type StatsResponse (line 130) | type StatsResponse struct method Reset (line 145) | func (m *StatsResponse) Reset() { *m = StatsResponse{} } method String (line 146) | func (m *StatsResponse) String() string { return proto.CompactTextStri... method ProtoMessage (line 147) | func (*StatsResponse) ProtoMessage() {} method GetGets (line 149) | func (m *StatsResponse) GetGets() int64 { method GetCacheHits (line 156) | func (m *StatsResponse) GetCacheHits() int64 { method GetFills (line 163) | func (m *StatsResponse) GetFills() int64 { method GetTotalAlloc (line 170) | func (m *StatsResponse) GetTotalAlloc() uint64 { method GetMainCache (line 177) | func (m *StatsResponse) GetMainCache() *CacheStats { method GetHotCache (line 184) | func (m *StatsResponse) GetHotCache() *CacheStats { method GetServerIn (line 191) | func (m *StatsResponse) GetServerIn() int64 { method GetLoads (line 198) | func (m *StatsResponse) GetLoads() int64 { method GetPeerLoads (line 205) | func (m *StatsResponse) GetPeerLoads() int64 { method GetPeerErrors (line 212) | func (m *StatsResponse) GetPeerErrors() int64 { method GetLocalLoads (line 219) | func (m *StatsResponse) GetLocalLoads() int64 { type Empty (line 226) | type Empty struct method Reset (line 230) | func (m *Empty) Reset() { *m = Empty{} } method String (line 231) | func (m *Empty) String() string { return proto.CompactTextString(m) } method ProtoMessage (line 232) | func (*Empty) ProtoMessage() {} function init (line 234) | func init() {