-
Notifications
You must be signed in to change notification settings - Fork 8
/
perm.pb.go
137 lines (124 loc) · 5.57 KB
/
perm.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: perm/perm.proto
package types
import (
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
math "math"
strconv "strconv"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
// Role represents a role
type Role int32
const (
// ROOT_ADMIN defines the root admin role index.
RoleRootAdmin Role = 0
// PERM_ADMIN defines the permission admin role index.
RolePermAdmin Role = 1
// BLACKLIST_ADMIN defines the blacklist admin role index.
RoleBlacklistAdmin Role = 2
// NODE_ADMIN defines the node admin role index.
RoleNodeAdmin Role = 3
// PARAM_ADMIN defines the param admin role index.
RoleParamAdmin Role = 4
// POWER_USER defines the power user role index.
RolePowerUser Role = 5
// RELAYER_USER defines the relayer user role index.
RoleRelayerUser Role = 6
// ID_ADMIN defines the identity admin role index.
RoleIDAdmin Role = 7
// BASE_M1_ADMIN defines the base M1 admin role index.
RoleBaseM1Admin Role = 8
// Chain_Account_Role defines the platform admin role index.
RolePlatformUser Role = 9
// POWER_USER_ADMIN defines the power admin role index.
RolePowerUserAdmin Role = 10
//LAYER2_USER defines the layer2 user role index.
RoleLayer2User Role = 11
)
var Role_name = map[int32]string{
0: "ROOT_ADMIN",
1: "PERM_ADMIN",
2: "BLACKLIST_ADMIN",
3: "NODE_ADMIN",
4: "PARAM_ADMIN",
5: "POWER_USER",
6: "RELAYER_USER",
7: "ID_ADMIN",
8: "BASE_M1_ADMIN",
9: "PLATFORM_USER",
10: "POWER_USER_ADMIN",
11: "LAYER2_USER",
}
var Role_value = map[string]int32{
"ROOT_ADMIN": 0,
"PERM_ADMIN": 1,
"BLACKLIST_ADMIN": 2,
"NODE_ADMIN": 3,
"PARAM_ADMIN": 4,
"POWER_USER": 5,
"RELAYER_USER": 6,
"ID_ADMIN": 7,
"BASE_M1_ADMIN": 8,
"PLATFORM_USER": 9,
"POWER_USER_ADMIN": 10,
"LAYER2_USER": 11,
}
func (Role) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_bb77ba30a3a45e51, []int{0}
}
func init() {
proto.RegisterEnum("iritamod.perm.Role", Role_name, Role_value)
golang_proto.RegisterEnum("iritamod.perm.Role", Role_name, Role_value)
}
func init() { proto.RegisterFile("perm/perm.proto", fileDescriptor_bb77ba30a3a45e51) }
func init() { golang_proto.RegisterFile("perm/perm.proto", fileDescriptor_bb77ba30a3a45e51) }
var fileDescriptor_bb77ba30a3a45e51 = []byte{
// 440 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x92, 0xc1, 0x6e, 0xd3, 0x30,
0x1c, 0xc6, 0x13, 0x36, 0xc6, 0x70, 0x57, 0x5a, 0xc2, 0xc4, 0xc1, 0x12, 0x56, 0x10, 0x02, 0x24,
0x40, 0x0d, 0x1b, 0x4f, 0xe0, 0xd0, 0x20, 0x55, 0x24, 0x4d, 0xe5, 0x6e, 0x42, 0x70, 0xa9, 0xdc,
0xd5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, 0xe5, 0xd3, 0x1d, 0xd3, 0x9c, 0x17, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff,
0x56, 0xc1, 0x9a, 0x92, 0x71, 0x02, 0x00, 0x00,
}
func (x Role) String() string {
s, ok := Role_name[int32(x)]
if ok {
return s
}
return strconv.Itoa(int(x))
}