MCPcopy
hub / github.com/grpc/grpc-go / Add

Method Add

internal/wrr/wrr.go:26–26  ·  view source on GitHub ↗

Add adds an item with weight to the WRR set. Add must be only called before any calls to Next.

(item any, weight int64)

Source from the content-addressed store, hash-verified

24 // Add adds an item with weight to the WRR set. Add must be only called
25 // before any calls to Next.
26 Add(item any, weight int64)
27 // Next returns the next picked item.
28 //
29 // Next needs to be thread safe. Add may not be called after any call to

Callers 15

ServeMethod · 0.65
handleRawConnMethod · 0.65
serveStreamsMethod · 0.65
incrCallsStartedMethod · 0.65
incrCallsSucceededMethod · 0.65
incrCallsFailedMethod · 0.65
acquireMethod · 0.65
releaseMethod · 0.65
incrCallsStartedMethod · 0.65
incrCallsSucceededMethod · 0.65

Implementers 3

testWRRinternal/testutils/wrr.go
edfWrrinternal/wrr/edf.go
randomWRRinternal/wrr/random.go

Calls

no outgoing calls