Packages

Elixir implementation of the Universal Tool Calling Protocol (UTCP)

Current section

Files

Jump to
ex_utcp lib ex_utcp transports graphql pool_behaviour.ex
Raw

lib/ex_utcp/transports/graphql/pool_behaviour.ex

defmodule ExUtcp.Transports.Graphql.PoolBehaviour do
@moduledoc """
Behaviour for GraphQL connection pools to enable mocking in tests.
"""
@callback get_connection(provider :: map()) :: {:ok, pid()} | {:error, term()}
@callback return_connection(pid()) :: :ok
@callback close_connection(pid()) :: :ok
@callback close_all_connections() :: :ok
@callback stats() :: map()
end