GrpcBuilder v0.2.1-alpha GrpcBuilder.Client.RpcConn View Source
Persistent gRPC connection to GRPC server.
Link to this section Summary
Functions
The parameters for start_link/3 are
Link to this section Functions
Link to this function
get_conn(name)
View Sourceget_conn(atom()) :: GrpcBuilder.Client.Conn.t() | {:error, :closed}
Link to this function
start_link(name, endpoint, opts, callback)
View Sourcestart_link(atom(), String.t(), Keyword.t(), (() -> any()) | nil) :: 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