MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / HandleNSClientSetSdkEndpoint

Function HandleNSClientSetSdkEndpoint

src/cmd/fedb.cc:860–874  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

858}
859
860void HandleNSClientSetSdkEndpoint(const std::vector<std::string>& parts,
861 ::fedb::client::NsClient* client) {
862 if (parts.size() != 3) {
863 std::cout << "Bad format for setsdkendpoint!"
864 "eg. setsdkendpoint server_name sdkendpoint" << std::endl;
865 return;
866 }
867 std::string msg;
868 bool ret = client->SetSdkEndpoint(parts[1], parts[2], &msg);
869 if (!ret) {
870 std::cout << "setsdkendpoint failed. error msg: " << msg << std::endl;
871 return;
872 }
873 std::cout << "setsdkendpoint ok" << std::endl;
874}
875
876void HandleNSClientAddIndex(const std::vector<std::string>& parts,
877 ::fedb::client::NsClient* client) {

Callers 1

StartNsClientFunction · 0.85

Calls 2

sizeMethod · 0.45
SetSdkEndpointMethod · 0.45

Tested by

no test coverage detected