GRPC Core  9.0.0
handshaker_registry.h
Go to the documentation of this file.
1 /*
2  *
3  * Copyright 2016 gRPC authors.
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */
18 
19 #ifndef GRPC_CORE_LIB_CHANNEL_HANDSHAKER_REGISTRY_H
20 #define GRPC_CORE_LIB_CHANNEL_HANDSHAKER_REGISTRY_H
21 
23 
25 
27 
28 namespace grpc_core {
29 
30 typedef enum {
33  NUM_HANDSHAKER_TYPES, // Must be last.
35 
37  public:
41  static void RegisterHandshakerFactory(
42  bool at_start, HandshakerType handshaker_type,
43  std::unique_ptr<HandshakerFactory> factory);
44  static void AddHandshakers(HandshakerType handshaker_type,
45  const grpc_channel_args* args,
46  grpc_pollset_set* interested_parties,
47  HandshakeManager* handshake_mgr);
48  static void Init();
49  static void Shutdown();
50 };
51 
52 } // namespace grpc_core
53 
54 #endif /* GRPC_CORE_LIB_CHANNEL_HANDSHAKER_REGISTRY_H */
static void AddHandshakers(HandshakerType handshaker_type, const grpc_channel_args *args, grpc_pollset_set *interested_parties, HandshakeManager *handshake_mgr)
Definition: handshaker_registry.cc:108
An array of arguments that can be passed around.
Definition: grpc_types.h:132
Definition: handshaker_registry.h:32
static void Init()
Definition: handshaker_registry.cc:76
Definition: handshaker.h:91
Definition: handshaker_registry.h:31
Round Robin Policy.
Definition: backend_metric.cc:24
static void Shutdown()
Definition: handshaker_registry.cc:90
static void RegisterHandshakerFactory(bool at_start, HandshakerType handshaker_type, std::unique_ptr< HandshakerFactory > factory)
Registers a new handshaker factory.
Definition: handshaker_registry.cc:100
struct grpc_pollset_set grpc_pollset_set
Definition: pollset_set.h:31
Definition: handshaker_registry.h:36
HandshakerType
Definition: handshaker_registry.h:30
Definition: handshaker_registry.h:33