Gets file's contents as a string, throws an exception if failed.
| 169 | |
| 170 | /// Gets file's contents as a string, throws an exception if failed. |
| 171 | String readFile(const String & filepath) |
| 172 | { |
| 173 | Poco::FileInputStream ifs(filepath); |
| 174 | String res; |
| 175 | Poco::StreamCopier::copyToString(ifs, res); |
| 176 | return res; |
| 177 | } |
| 178 | |
| 179 | /// Makes credentials based on the server config. |
| 180 | std::shared_ptr<grpc::ServerCredentials> makeCredentials(const Poco::Util::AbstractConfiguration & config) |
no outgoing calls
no test coverage detected