Anoma.Client.Examples.EClient (Anoma v0.34.0)
I contain functions to test the public interface of the client.
I start a new client and if necessary a node, and then connect to that node.
I test the public GRPC interface of the client to ensure it works as expected.
Summary
Functions
I create an instance of the client and connect it to the given node.
I create a new node in the system, and ensure that that is the only node that is running by killing all other nodes.
I create the setup necessary to run each example below without arguments.
Types
@type t() :: %Anoma.Client.Examples.EClient{ channel: any() | nil, client: Anoma.Client.t() | nil, conn: any() | nil, node: Anoma.Node.Examples.ENode.t() | nil }
I am the state of a TCP listener.
My fields contain information to listen for TCP connection with a remote node.
Fields
:node
- The node to which the client is connected.:client
- The client that is connected to the node.:conn
- A phoenix connection object to make web requests.
Functions
@spec create_example_client(Anoma.Node.Examples.ENode.t() | nil) :: t()
I create an instance of the client and connect it to the given node.
If there is already a client started, I kill it and start a new one.
@spec create_single_example_node() :: Anoma.Node.Examples.ENode.t()
I create a new node in the system, and ensure that that is the only node that is running by killing all other nodes.
@spec setup() :: t()
I create the setup necessary to run each example below without arguments.