MCPcopy Create free account
hub / github.com/apache/brpc / GenerateCredential

Method GenerateCredential

src/brpc/policy/esp_authenticator.cpp:29–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27const int MAGICNUM_LEN = 6;
28
29int EspAuthenticator::GenerateCredential(std::string* auth_str) const {
30 auth_str->assign(MAGICNUM, MAGICNUM_LEN);
31 uint16_t local_port = 0;
32 auth_str->append((char *)&local_port, sizeof(local_port));
33 return 0;
34}
35
36int EspAuthenticator::VerifyCredential(
37 const std::string& /*auth_str*/,

Callers 8

PackEspRequestFunction · 0.45
PackRedisRequestFunction · 0.45
PackHttpRequestFunction · 0.45
PackH2RequestFunction · 0.45
PackMemcacheRequestFunction · 0.45
PackRpcRequestFunction · 0.45
PackHuluRequestFunction · 0.45
PackCouchbaseRequestFunction · 0.45

Calls 2

assignMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected