-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IncomingIntrospectionEvent holds a map
IncomingIntrospectionEvent holds now a map interface-name -> {major, minor}. Keep the old plain introspection string as a deprecated field. Signed-off-by: Arnaldo Cesco <[email protected]>
- Loading branch information
Showing
4 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 25 additions & 3 deletions
28
lib/astarte_core/triggers/simple_events/incoming_introspection_event.pb.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,31 @@ | ||
defmodule Astarte.Core.Triggers.SimpleEvents.InterfaceVersion do | ||
@moduledoc false | ||
|
||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" | ||
|
||
field :major, 1, type: :int32 | ||
field :minor, 2, type: :int32 | ||
end | ||
|
||
defmodule Astarte.Core.Triggers.SimpleEvents.IncomingIntrospectionEvent.IntrospectionMapEntry do | ||
@moduledoc false | ||
|
||
use Protobuf, map: true, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" | ||
|
||
field :key, 1, type: :string | ||
field :value, 2, type: Astarte.Core.Triggers.SimpleEvents.InterfaceVersion | ||
end | ||
|
||
defmodule Astarte.Core.Triggers.SimpleEvents.IncomingIntrospectionEvent do | ||
@moduledoc false | ||
|
||
use Protobuf, protoc_gen_elixir_version: "0.11.0", syntax: :proto3 | ||
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0" | ||
|
||
def fully_qualified_name, do: "IncomingIntrospectionEvent" | ||
field :introspection, 1, proto3_optional: true, type: :string, deprecated: true | ||
|
||
field :introspection, 1, proto3_optional: true, type: :string | ||
field :introspection_map, 2, | ||
repeated: true, | ||
type: Astarte.Core.Triggers.SimpleEvents.IncomingIntrospectionEvent.IntrospectionMapEntry, | ||
json_name: "introspectionMap", | ||
map: true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters