forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwell_known_names.h
41 lines (33 loc) · 1.11 KB
/
well_known_names.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include <string>
#include "common/singleton/const_singleton.h"
namespace Envoy {
namespace Extensions {
namespace TransportSockets {
/**
* Well-known transport socket names.
* NOTE: New transport sockets should use the well known name: envoy.transport_sockets.name.
*/
class TransportSocketNameValues {
public:
const std::string Alts = "envoy.transport_sockets.alts";
const std::string Tap = "envoy.transport_sockets.tap";
const std::string RawBuffer = "envoy.transport_sockets.raw_buffer";
const std::string Tls = "envoy.transport_sockets.tls";
const std::string Quic = "envoy.transport_sockets.quic";
};
using TransportSocketNames = ConstSingleton<TransportSocketNameValues>;
/**
* Well-known transport protocol names.
*/
class TransportProtocolNameValues {
public:
const std::string Tls = "tls";
const std::string RawBuffer = "raw_buffer";
const std::string Quic = "quic";
};
// TODO(lizan): Find a better place to have this singleton.
using TransportProtocolNames = ConstSingleton<TransportProtocolNameValues>;
} // namespace TransportSockets
} // namespace Extensions
} // namespace Envoy