View Source pact_ref_server (pact_erlang v0.2.1)
Summary
Functions
Public API to create an interaction
Gets consumer and producer for a pact ref
Public API to set the mock server port when the server is started
Gets pact ref generated (when a new pact was created/re-created) by pact ffi
Public API to set the mock server port when the server is started
Sets pact_ref in pact_handler's state
Starts pact server
Stops the pact_handler gen_server for final cleanups
Types
-type consumer() :: binary().
-type pact_interaction_details() :: map().
-type pact_interaction_ref() :: integer().
-type pact_mock_server_port() :: integer().
-type pact_ref() :: integer().
-type provider() :: binary().
Functions
-spec create_interaction(pid(), pact_interaction_ref(), pact_interaction_details()) -> ok.
-spec get_mock_server_port(pid()) -> pact_mock_server_port().
-spec get_pact_ref(pid()) -> pact_ref().
-spec set_mock_server_port(pid(), pact_mock_server_port()) -> ok.
-spec set_pact_ref(pid(), pact_ref()) -> ok.
-spec start(consumer(), provider()) -> gen_server:start_ret().
-spec stop(pid()) -> ok.