Sync events with docs (#1900)

Signed-off-by: Rodney Osodo <socials@rodneyosodo.com>
Signed-off-by: Rodney Osodo <28790446+rodneyosodo@users.noreply.github.com>
This commit is contained in:
b1ackd0t 2023-10-18 11:31:38 +03:00 committed by GitHub
parent cd82cc5a43
commit 46705d401f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 3 deletions

View File

@ -17,6 +17,7 @@ const (
configCreate = configPrefix + "create"
configUpdate = configPrefix + "update"
configRemove = configPrefix + "remove"
configView = configPrefix + "view"
configList = configPrefix + "list"
configHandlerRemove = configPrefix + "remove_handler"

View File

@ -57,7 +57,7 @@ func (es *eventStore) View(ctx context.Context, token, id string) (bootstrap.Con
return cfg, err
}
ev := configEvent{
cfg, configList,
cfg, configView,
}
if err := es.Publish(ctx, ev); err != nil {

View File

@ -18,7 +18,7 @@ const (
groupRemove = groupPrefix + "remove"
groupView = groupPrefix + "view"
groupList = groupPrefix + "list"
groupListMemberships = groupPrefix + "list_by_group"
groupListMemberships = groupPrefix + "list_by_user"
)
var (
@ -220,6 +220,7 @@ type listGroupMembershipEvent struct {
func (lgme listGroupMembershipEvent) Encode() (map[string]interface{}, error) {
val := map[string]interface{}{
"operation": groupListMemberships,
"group_id": lgme.groupID,
"permission": lgme.permission,
"member_kind": lgme.memberKind,

View File

@ -20,7 +20,7 @@ const (
clientRemove = clientPrefix + "remove"
clientView = clientPrefix + "view"
clientList = clientPrefix + "list"
clientListByGroup = clientPrefix + "list_by_group"
clientListByGroup = clientPrefix + "list_by_channel"
clientIdentify = clientPrefix + "identify"
clientAuthorize = clientPrefix + "authorize"
)