MCPcopy
hub / github.com/redis/go-redis / initHooks

Method initHooks

redis.go:74–78  ·  view source on GitHub ↗
(hooks hooks)

Source from the content-addressed store, hash-verified

72}
73
74func (hs *hooksMixin) initHooks(hooks hooks) {
75 hs.hooksMu = new(sync.RWMutex)
76 hs.initial = hooks
77 hs.chain()
78}
79
80type hooks struct {
81 dial DialHook

Callers 8

initMethod · 0.80
newConnFunction · 0.80
NewRingFunction · 0.80
NewClusterClientFunction · 0.80
initMethod · 0.80
newTestBaseClientFunction · 0.80
NewSentinelClientFunction · 0.80

Calls 1

chainMethod · 0.95

Tested by 2

newTestBaseClientFunction · 0.64