pact_ref_server (pact_erlang v0.3.1)
View SourceSummary
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
Functions
-spec create_interaction(pid(), pact_interaction_ref(), pact_interaction_details()) -> ok.
Public API to create an interaction
Gets consumer and producer for a pact ref
-spec get_mock_server_port(pid()) -> pact_mock_server_port().
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
-spec set_mock_server_port(pid(), pact_mock_server_port()) -> ok.
Public API to set the mock server port when the server is started
Sets pact_ref in pact_handler's state
-spec start(consumer(), provider()) -> gen_server:start_ret().
Starts pact server
-spec stop(pid()) -> ok.
Stops the pact_handler gen_server for final cleanups