ring_hash.h
Go to the documentation of this file.
1 //
2 // Copyright 2018 gRPC authors.
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 // http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_RING_HASH_RING_HASH_H
18 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_RING_HASH_RING_HASH_H
19 
21 
22 #include <stdlib.h>
23 
24 #include <vector>
25 
28 #include "src/core/lib/json/json.h"
29 
30 namespace grpc_core {
31 
32 UniqueTypeName RequestHashAttributeName();
33 
34 // Helper Parsing method to parse ring hash policy configs; for example, ring
35 // hash size validity.
36 void ParseRingHashLbConfig(const Json& json, size_t* min_ring_size,
37  size_t* max_ring_size,
38  std::vector<grpc_error_handle>* error_list);
39 
40 } // namespace grpc_core
41 
42 #endif // GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_LB_POLICY_RING_HASH_RING_HASH_H
grpc_core::RequestHashAttributeName
UniqueTypeName RequestHashAttributeName()
Definition: ring_hash.cc:77
grpc_core
Definition: call_metric_recorder.h:31
Json
JSON (JavaScript Object Notation).
Definition: third_party/bloaty/third_party/protobuf/conformance/third_party/jsoncpp/json.h:227
error.h
json.h
grpc_core::ParseRingHashLbConfig
void ParseRingHashLbConfig(const Json &json, size_t *min_ring_size, size_t *max_ring_size, std::vector< grpc_error_handle > *error_list)
Definition: ring_hash.cc:83
unique_type_name.h
port_platform.h


grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:11