defmodule Cratis.Chronicle.Contracts.EnsureEventStore do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Name, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.EnsureNamespace do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Name, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.GetNamespacesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.IEnumerable_String do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :items, 1, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.EventStores.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.EventStores",
protoc_gen_elixir_version: "0.16.0"
rpc :Ensure, Cratis.Chronicle.Contracts.EnsureEventStore, Google.Protobuf.Empty
rpc :GetEventStores, Google.Protobuf.Empty, Cratis.Chronicle.Contracts.IEnumerable_String
rpc :ObserveEventStores,
Google.Protobuf.Empty,
stream(Cratis.Chronicle.Contracts.IEnumerable_String)
end
defmodule Cratis.Chronicle.Contracts.EventStores.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.EventStores.Service
end
defmodule Cratis.Chronicle.Contracts.Namespaces.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.Namespaces",
protoc_gen_elixir_version: "0.16.0"
rpc :Ensure, Cratis.Chronicle.Contracts.EnsureNamespace, Google.Protobuf.Empty
rpc :GetNamespaces,
Cratis.Chronicle.Contracts.GetNamespacesRequest,
Cratis.Chronicle.Contracts.IEnumerable_String
rpc :ObserveNamespaces,
Cratis.Chronicle.Contracts.GetNamespacesRequest,
stream(Cratis.Chronicle.Contracts.IEnumerable_String)
end
defmodule Cratis.Chronicle.Contracts.Namespaces.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Namespaces.Service
end