mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-23 03:38:35 +00:00
61a74ab331
And rename roles.go to role.go to match the role_string.go and the existing naming pattern for enums. Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
41 lines
830 B
Go
41 lines
830 B
Go
// Code generated by "stringer -type=Role"; DO NOT EDIT.
|
|
|
|
package noderoles
|
|
|
|
import "strconv"
|
|
|
|
func _() {
|
|
// An "invalid array index" compiler error signifies that the constant values have changed.
|
|
// Re-run the stringer command to generate them again.
|
|
var x [1]struct{}
|
|
_ = x[StateValidator-4]
|
|
_ = x[Oracle-8]
|
|
_ = x[NeoFSAlphabet-16]
|
|
_ = x[P2PNotary-32]
|
|
_ = x[last-64]
|
|
}
|
|
|
|
const (
|
|
_Role_name_0 = "StateValidator"
|
|
_Role_name_1 = "Oracle"
|
|
_Role_name_2 = "NeoFSAlphabet"
|
|
_Role_name_3 = "P2PNotary"
|
|
_Role_name_4 = "last"
|
|
)
|
|
|
|
func (i Role) String() string {
|
|
switch {
|
|
case i == 4:
|
|
return _Role_name_0
|
|
case i == 8:
|
|
return _Role_name_1
|
|
case i == 16:
|
|
return _Role_name_2
|
|
case i == 32:
|
|
return _Role_name_3
|
|
case i == 64:
|
|
return _Role_name_4
|
|
default:
|
|
return "Role(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
}
|