Skip to content

Commit

Permalink
Sync events with docs (#1900)
Browse files Browse the repository at this point in the history
Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: Rodney Osodo <[email protected]>
  • Loading branch information
rodneyosodo authored Oct 18, 2023
1 parent cd82cc5 commit 46705d4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions bootstrap/events/producer/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const (
configCreate = configPrefix + "create"
configUpdate = configPrefix + "update"
configRemove = configPrefix + "remove"
configView = configPrefix + "view"
configList = configPrefix + "list"
configHandlerRemove = configPrefix + "remove_handler"

Expand Down
2 changes: 1 addition & 1 deletion bootstrap/events/producer/streams.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
3 changes: 2 additions & 1 deletion internal/groups/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion things/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down

0 comments on commit 46705d4

Please sign in to comment.