MCPcopy Index your code
hub / github.com/CodisLabs/codis / NodeName

Method NodeName

pkg/utils/redis/sentinel.go:46–48  ·  view source on GitHub ↗
(gid int)

Source from the content-addressed store, hash-verified

44}
45
46func (s *Sentinel) NodeName(gid int) string {
47 return fmt.Sprintf("%s-%d", s.Product, gid)
48}
49
50func (s *Sentinel) isSameProduct(name string) (gid int, _ bool) {
51 if !strings.HasPrefix(name, s.Product) {

Callers 4

monitorGroupsCommandMethod · 0.95
removeGroupsDispatchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected