ForgeSdk v1.0.7 ForgeSdk.RpcConn View Source
Persistent gRPC connection to Forge GRPC server.
Link to this section Summary
Functions
The parameters for start_link/3 are
Link to this section Functions
Link to this function
close(pid) View Source
Link to this function
get_config(name) View Source
Link to this function
get_conn(name)
View Source
get_conn(name)
View Source
get_conn(atom()) :: ForgeSdk.Conn.t() | {:error, :closed}
get_conn(atom()) :: ForgeSdk.Conn.t() | {:error, :closed}
Link to this function
get_conn_state(name)
View Source
get_conn_state(name)
View Source
get_conn_state(atom()) :: ForgeSdk.Conn.t() | {:error, :closed}
get_conn_state(atom()) :: ForgeSdk.Conn.t() | {:error, :closed}
Link to this function
start_link(args)
View Source
start_link(args)
View Source
start_link(list()) :: GenServer.on_start()
start_link(list()) :: GenServer.on_start()
The parameters for start_link/3 are:
endpoint
- the address of gRPC server inhost:port
formatopts
- the options for gRPC http2 clientgun
callback
- the 0 arity function to be called when gRPC connection is established
Link to this function
update_config(pid, config) View Source
Link to this function