-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
executable file
·117 lines (109 loc) · 5.27 KB
/
const.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
package campid
const (
NotSupported = "NOT SUPPORTED"
)
// Auth manager events
const (
LogOutUserTopic = "campid.users.logOutUser"
LoggedOutUserTopic = "campid.users.loggedOutUser"
LogInUserTopic = "campid.users.logInUser"
LoggedInUserTopic = "campid.users.loggedInUser"
RefreshUserTopic = "campid.users.refreshUser"
RefreshedUserTopic = "campid.users.refreshedUser"
VerifyUserTopic = "campid.users.verifyUser"
VerifiedUserTopic = "campid.users.verifiedUser"
RegisterUserTopic = "campid.users.registerUser"
RegisteredUserTopic = "campid.users.registeredUser"
FinishLoginUserTopic = "campid.users.finishUserAuth"
FinishedLoginUserTopic = "campid.users.finishedUserAuth"
FinishRegistrationTopic = "campid.users.finishRegistration"
FinishedRegistrationTopic = "campid.users.finishedRegistration"
SendRegistrationVerificationTopic = "campid.users.sendRegistrationVerificationTopic"
SentRegistrationVerificationTopic = "campid.users.sentRegistrationVerificationTopic"
SendLoginVerificationTopic = "campid.users.sendLoginVerificationTopic"
SentLoginVerificationTopic = "campid.users.sentLoginVerificationTopic"
)
// Jwt service events
const (
GetAllJwtForZoneTopic = "campid.jwt.getAllJwtForZone"
DeletedJwtTopic = "campid.jwt.deletedJwt"
DeleteAllJwtForZoneTopic = "campid.jwt.deleteAllJwtForZone"
DeleteJwtForZoneTopic = "campid.jwt.deleteJwtForZone"
)
// Device service events
const (
CreateDeviceTopic = "campid.devices.createDevice"
DeviceCreatedTopic = "campid.devices.deviceCreated"
RemoveDeviceTopic = "campid.devices.removeDevice"
DeviceRemovedTopic = "campid.devices.removedDevice"
RemoveDevicesForZoneTopic = "campid.devices.removeDevice"
DevicesRemovedTopic = "campid.devices.removedDevices"
EnableDeviceTopic = "campid.devices.deviceEnabled"
DeviceEnabledTopic = "campid.devices.deviceEnabled"
DisableDeviceTopic = "campid.devices.deviceEnabled"
DeviceDisabledTopic = "campid.devices.deviceEnabled"
UpdateDeviceTopic = "campid.devices.updateDevice"
DeviceUpdatedTopic = "campid.devices.deviceUpdated"
GetAllDevicesTopic = "campid.devices.getAllDevices"
GetDeviceTopic = "campid.devices.getDevice"
GetDevicesForZoneTopic = "campid.devices.getDevicesForZone"
GetDevicesForCityTopic = "campid.devices.getDevicesForCity"
GetDevicesForUserTopic = "campid.devices.getDevicesForUser"
GetDevicesForCityAndIpTopic = "campid.devices.getDevicesForCityAndIp"
)
// Role service events
const (
CreateRoleTopic = "campid.roles.createRole"
RoleCreatedTopic = "campid.roles.createdRole"
DeleteRoleTopic = "campid.roles.deleteRole"
RoleDeletedTopic = "campid.roles.deletedRole"
UpdateRoleTopic = "campid.roles.updateRole"
RoleUpdatedTopic = "campid.roles.updatedRole"
GetRoleTopic = "campid.roles.getRole"
GetAllRolesTopic = "campid.roles.getAllRoles"
GetRoleWithActionTopic = "campid.roles.getRoleWithAction"
GetRolesWithActionsTopic = "campid.roles.getRolesWithAction"
GetRolesWithAnyActionTopic = "campid.roles.getRolesWithAnyAction"
GetAllRoleActionTopic = "campid.roles.actions.createAction"
CreateRoleActionTopic = "campid.roles.actions.createAction"
RoleActionCreatedTopic = "campid.roles.actions.createdAction"
DeleteRoleActionTopic = "campid.roles.actions.deleteAction"
RoleActionDeletedTopic = "campid.roles.actions.deletedAction"
)
// Group service events
const (
CreateGroupTopic = "campid.groups.createGroup"
GroupCreatedTopic = "campid.groups.createdGroup"
DeleteGroupTopic = "campid.groups.deleteGroup"
GroupDeletedTopic = "campid.groups.deletedGroup"
UpdateGroupTopic = "campid.groups.updateGroup"
GroupUpdatedTopic = "campid.groups.updatedGroup"
GetAllGroupsTopic = "campid.groups.getAllGroups"
GetGroupTopic = "campid.groups.getGroup"
GetGroupWithRoleTopic = "campid.groups.getGroupWithRole"
GetGroupWithRolesTopic = "campid.groups.getGroupWithRoles"
GetGroupWithAnyOfRolesTopic = "campid.groups.getGroupWithAnyOfRoles"
)
// Zone service events
const (
CreateZoneTopic = "campid.zone.createZone"
ZoneCreatedTopic = "campid.zone.createdZone"
UpdateZoneTopic = "campid.zone.updateZone"
ZoneUpdatedTopic = "campid.zone.updatedZone"
DeleteZoneTopic = "campid.zone.deleteZone"
ZoneDeletedTopic = "campid.zone.deletedZone"
)
// User service events
const (
GetUserByPhoneTopic = "campid.users.getUserByPhone"
GetUserByEmailTopic = "campid.users.getUserByEmail"
GetUserTopic = "campid.users.getUser"
GetAllUsersTopic = "campid.users.getAllUsers"
CreateUserTopic = "campid.users.createUser"
UserCreatedTopic = "campid.users.createdUser"
UpdateUserTopic = "campid.users.updateUser"
UserUpdatedTopic = "campid.users.updatedUser"
DeleteUserTopic = "campid.users.deleteUser"
DeleteUserByPidTopic = "campid.users.deleteUserByPid"
DeletedUserTopic = "campid.users.deletedUser"
)