MCPcopy
hub / github.com/grafana/dskit / String

Method String

kv/memberlist/node_zone_aware_routing.go:27–36  ·  view source on GitHub ↗

String returns the string representation of the node role.

()

Source from the content-addressed store, hash-verified

25
26// String returns the string representation of the node role.
27func (r NodeRole) String() string {
28 switch r {
29 case NodeRoleMember:
30 return "member"
31 case NodeRoleBridge:
32 return "bridge"
33 default:
34 return fmt.Sprintf("unknown(%d)", r)
35 }
36}
37
38const (
39 // MaxZoneNameLength is the maximum zone name length (to keep metadata compact).

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected