Skip to content

Commit

Permalink
wip: New commands format definition
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGaiva committed Jan 2, 2024
1 parent bec8dbe commit 2dbbaee
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions lib/message/data.ex
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,40 @@ defmodule RabbitMQStream.Message.Data do
defstruct []
end

defmodule RouteRequestData do
@moduledoc false
@enforce_keys [:routing_key, :super_stream]
@type t :: %{
routing_key: String.t(),
super_stream: String.t()
}
defstruct [
:routing_key,
:super_stream
]
end

defmodule RouteResponseData do
@moduledoc false
@enforce_keys [:stream]
@type t :: %{stream: String.t()}
defstruct [:stream]
end

defmodule PartitionsQueryRequestData do
@moduledoc false
@enforce_keys [:super_stream]
@type t :: %{super_stream: String.t()}
defstruct [:super_stream]
end

defmodule PartitionsQueryRequestData do

Check warning on line 295 in lib/message/data.ex

View workflow job for this annotation

GitHub Actions / test

redefining module RabbitMQStream.Message.Data.PartitionsQueryRequestData (current version loaded from _build/dev/lib/rabbitmq_stream/ebin/Elixir.RabbitMQStream.Message.Data.PartitionsQueryRequestData.beam)
@moduledoc false
@enforce_keys [:stream]
@type t :: %{stream: String.t()}
defstruct [:stream]
end

defmodule DeliverData do
@moduledoc false
@enforce_keys [:subscription_id, :osiris_chunk]
Expand Down

0 comments on commit 2dbbaee

Please sign in to comment.