MCPcopy
hub / github.com/Terry-Mao/goim / Get

Method Get

internal/comet/ring.go:49–55  ·  view source on GitHub ↗

Get get a proto from ring.

()

Source from the content-addressed store, hash-verified

47
48// Get get a proto from ring.
49func (r *Ring) Get() (proto *grpc.Proto, err error) {
50 if r.rp == r.wp {
51 return nil, errors.ErrRingEmpty
52 }
53 proto = &r.data[r.rp&r.mask]
54 return
55}
56
57// GetAdv incr read index.
58func (r *Ring) GetAdv() {

Callers 13

pingRedisMethod · 0.45
AddMappingMethod · 0.45
ExpireMappingMethod · 0.45
DelMappingMethod · 0.45
ServersByKeysMethod · 0.45
KeysByMidsMethod · 0.45
addServerOnlineMethod · 0.45
serverOnlineMethod · 0.45
DelServerOnlineMethod · 0.45
ServeWebsocketMethod · 0.45
dispatchWebsocketMethod · 0.45
ServeTCPMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected