docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
sdfg::passes::rpc::SimpleRpcContextBuilder Struct Reference

#include <sdfg/passes/rpc/rpc_context.h>

Public Member Functions

 SimpleRpcContextBuilder ()
SimpleRpcContextBuilder & initialize_local_default ()
SimpleRpcContextBuilder & from_file (std::filesystem::path config_file)
SimpleRpcContextBuilder & from_header_env (std::string env_var="RPC_HEADER")
SimpleRpcContextBuilder & from_env (std::string env_var="SDFG_RPC_CONFIG")
SimpleRpcContextBuilder & add_header (std::string name, std::string value)
SimpleRpcContextBuilder & from_docc_config ()
std::shared_ptr< SimpleRpcContext > build (bool print=true) const

Public Attributes

std::string server
std::string endpoint
std::unordered_map< std::string, std::string > headers

Constructor & Destructor Documentation

◆ SimpleRpcContextBuilder()

sdfg::passes::rpc::SimpleRpcContextBuilder::SimpleRpcContextBuilder ( )
inline

Member Function Documentation

◆ add_header()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::add_header ( std::string name,
std::string value )

◆ build()

std::shared_ptr< SimpleRpcContext > sdfg::passes::rpc::SimpleRpcContextBuilder::build ( bool print = true) const

◆ from_docc_config()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::from_docc_config ( )

◆ from_env()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::from_env ( std::string env_var = "SDFG_RPC_CONFIG")

◆ from_file()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::from_file ( std::filesystem::path config_file)

◆ from_header_env()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::from_header_env ( std::string env_var = "RPC_HEADER")

◆ initialize_local_default()

SimpleRpcContextBuilder & sdfg::passes::rpc::SimpleRpcContextBuilder::initialize_local_default ( )

Member Data Documentation

◆ endpoint

std::string sdfg::passes::rpc::SimpleRpcContextBuilder::endpoint

◆ headers

std::unordered_map<std::string, std::string> sdfg::passes::rpc::SimpleRpcContextBuilder::headers

◆ server

std::string sdfg::passes::rpc::SimpleRpcContextBuilder::server

The documentation for this struct was generated from the following file: