Viam C++ SDK current
Loading...
Searching...
No Matches
viam_grpc_channel.hpp
1#pragma once
2
3#include <memory>
4
5#include <grpcpp/channel.h>
6#include <grpcpp/security/credentials.h>
7
8#include <viam/sdk/common/grpc_fwd.hpp>
9
10namespace viam {
11namespace sdk {
12namespace impl {
13
16std::shared_ptr<grpc::Channel> create_viam_grpc_channel(
17 const grpc::string& target, const std::shared_ptr<grpc::ChannelCredentials>& credentials);
18
19#ifndef VIAMCPPSDK_GRPCXX_NO_DIRECT_DIAL
22std::shared_ptr<grpc::Channel> create_viam_auth_channel(const std::string& address);
23#endif
24
25} // namespace impl
26} // namespace sdk
27} // namespace viam