proxygen
SSLStats.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017-present Facebook, Inc.
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 #pragma once
17 
18 #include <stdint.h>
19 
20 namespace wangle {
21 
22 class SSLStats {
23  public:
24  virtual ~SSLStats() noexcept {}
25 
26  // downstream
27  virtual void recordSSLAcceptLatency(int64_t latency) noexcept = 0;
28  virtual void recordTLSTicket(bool ticketNew, bool ticketHit) noexcept = 0;
29  virtual void recordSSLSession(bool sessionNew, bool sessionHit, bool foreign)
30  noexcept = 0;
31  virtual void recordSSLSessionRemove() noexcept = 0;
32  virtual void recordSSLSessionFree(uint32_t freed) noexcept = 0;
33  virtual void recordSSLSessionSetError(uint32_t err) noexcept = 0;
34  virtual void recordSSLSessionGetError(uint32_t err) noexcept = 0;
35  virtual void recordClientRenegotiation() noexcept = 0;
36  virtual void recordSSLClientCertificateMismatch() noexcept = 0;
37  virtual void recordTLSTicketRotation(bool valid) noexcept = 0;
38 
39  // upstream
40  virtual void recordSSLUpstreamConnection(bool handshake) noexcept = 0;
41  virtual void recordSSLUpstreamConnectionError(bool verifyError) noexcept = 0;
42 
43 };
44 
45 } // namespace wangle
virtual void recordSSLSessionGetError(uint32_t err) noexcept=0
static unsigned long long freed
virtual ~SSLStats() noexcept
Definition: SSLStats.h:24
requires E e noexcept(noexcept(s.error(std::move(e))))
virtual void recordSSLSessionSetError(uint32_t err) noexcept=0
virtual void recordSSLUpstreamConnectionError(bool verifyError) noexcept=0
virtual void recordTLSTicket(bool ticketNew, bool ticketHit) noexcept=0
virtual void recordSSLSession(bool sessionNew, bool sessionHit, bool foreign) noexcept=0
virtual void recordSSLClientCertificateMismatch() noexcept=0
virtual void recordSSLSessionRemove() noexcept=0
virtual void recordSSLAcceptLatency(int64_t latency) noexcept=0
virtual void recordSSLSessionFree(uint32_t freed) noexcept=0
virtual void recordTLSTicketRotation(bool valid) noexcept=0
virtual void recordClientRenegotiation() noexcept=0
virtual void recordSSLUpstreamConnection(bool handshake) noexcept=0