String returns the string representation of the node role.
()
| 25 | |
| 26 | // String returns the string representation of the node role. |
| 27 | func (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 | |
| 38 | const ( |
| 39 | // MaxZoneNameLength is the maximum zone name length (to keep metadata compact). |
no outgoing calls
no test coverage detected