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

Function RegisterServerStart

groupcache.go:127–132  ·  view source on GitHub ↗

RegisterServerStart registers a hook that is run when the first group is created.

(fn func())

Source from the content-addressed store, hash-verified

125// RegisterServerStart registers a hook that is run when the first
126// group is created.
127func RegisterServerStart(fn func()) {
128 if initPeerServer != nil {
129 panic("RegisterServerStart called more than once")
130 }
131 initPeerServer = fn
132}
133
134func callInitPeerServer() {
135 if initPeerServer != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…