mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00

* Add initial Bootstrap event producer Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add operation name to events Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add ES path for BS events Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add BS event sourcing tests Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add connections update events Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Extract event XADD to separeate method Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Add header comments Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Fix service docs typo Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update BS service README.md Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com> * Update Service method tests Tests for handler methods are not added. Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
25 lines
355 B
Go
25 lines
355 B
Go
//
|
|
// Copyright (c) 2019
|
|
// Mainflux
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package consumer
|
|
|
|
type removeEvent struct {
|
|
id string
|
|
}
|
|
|
|
type updateChannelEvent struct {
|
|
id string
|
|
name string
|
|
metadata string
|
|
}
|
|
|
|
// Connection event is either connect or disconnect event.
|
|
type disconnectEvent struct {
|
|
thingID string
|
|
channelID string
|
|
}
|