ForgeSdk v0.27.1 ForgeSdk.Rpc.Conn View Source

Persistent gRPC connection to Forge GRPC server.

Link to this section Summary

Link to this section Functions

Link to this function

child_spec(args) View Source
child_spec(Keyword.t()) :: map()

Link to this function

get_chan() View Source
get_chan() :: GRPC.Channel.t() | {:error, :closed}

Link to this function

start_link(addr, opts, callback) View Source
start_link(String.t(), Keyword.t(), (() -> any())) :: GenServer.on_start()

The parameters for start_link/3 are:

  • addr - the address of gRPC server in host:port format
  • opts - the options for gRPC http2 client gun
  • callback - the 0 arity function to be called when gRPC connection is established