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:
parent
cd82cc5a43
commit
46705d401f
|
@ -17,6 +17,7 @@ const (
|
|||
configCreate = configPrefix + "create"
|
||||
configUpdate = configPrefix + "update"
|
||||
configRemove = configPrefix + "remove"
|
||||
configView = configPrefix + "view"
|
||||
configList = configPrefix + "list"
|
||||
configHandlerRemove = configPrefix + "remove_handler"
|
||||
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue