mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-27 00:19:36 -05:00
2d8fcd9bf4
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
26 lines
598 B
Go
26 lines
598 B
Go
// Code generated by "stringer -type=Role"; DO NOT EDIT.
|
|
|
|
package role
|
|
|
|
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[Unknown-0]
|
|
_ = x[Coordinator-1]
|
|
_ = x[Node-2]
|
|
}
|
|
|
|
const _Role_name = "UnknownCoordinatorNode"
|
|
|
|
var _Role_index = [...]uint8{0, 7, 18, 22}
|
|
|
|
func (i Role) String() string {
|
|
if i >= Role(len(_Role_index)-1) {
|
|
return "Role(" + strconv.FormatInt(int64(i), 10) + ")"
|
|
}
|
|
return _Role_name[_Role_index[i]:_Role_index[i+1]]
|
|
}
|