proxygen
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
ReplayCache.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2018-present, Facebook, Inc.
3
* All rights reserved.
4
*
5
* This source code is licensed under the BSD-style license found in the
6
* LICENSE file in the root directory of this source tree.
7
*/
8
9
#pragma once
10
11
#include <
folly/Range.h
>
12
#include <
folly/futures/Future.h
>
13
14
namespace
fizz
{
15
namespace
server {
16
17
enum
ReplayCacheResult
{
18
NotChecked
,
19
NotReplay
,
20
MaybeReplay
,
21
DefinitelyReplay
,
22
};
23
}
24
25
folly::StringPiece
toString
(
server::ReplayCacheResult
);
26
27
namespace
server {
28
33
class
ReplayCache
{
34
public
:
35
virtual
~
ReplayCache
() =
default
;
36
37
virtual
folly::Future<ReplayCacheResult>
check
(
38
folly::ByteRange
identifier) = 0;
39
};
40
44
class
AllowAllReplayReplayCache
:
public
ReplayCache
{
45
public
:
46
~
AllowAllReplayReplayCache
()
override
=
default
;
47
48
folly::Future<ReplayCacheResult>
check
(
folly::ByteRange
)
override
{
49
return
ReplayCacheResult::NotReplay
;
50
}
51
};
52
}
// namespace server
53
}
// namespace fizz
fizz::toString
folly::StringPiece toString(StateEnum state)
Definition:
State.cpp:16
fizz::server::NotReplay
Definition:
ReplayCache.h:19
Range.h
fizz::server::AllowAllReplayReplayCache
Definition:
ReplayCache.h:44
fizz::server::DefinitelyReplay
Definition:
ReplayCache.h:21
Future.h
fizz
Definition:
Actions.h:16
folly::Range< const char * >
folly::Future
Definition:
FiberManagerInternal.h:46
fizz::server::ReplayCacheResult
ReplayCacheResult
Definition:
ReplayCache.h:17
fizz::server::ReplayCache
Definition:
ReplayCache.h:33
fizz::server::AllowAllReplayReplayCache::check
folly::Future< ReplayCacheResult > check(folly::ByteRange) override
Definition:
ReplayCache.h:48
fizz::server::NotChecked
Definition:
ReplayCache.h:18
check
bool check(const dynamic &schema, const dynamic &value, bool check=true)
Definition:
JSONSchemaTest.cpp:27
fizz::server::MaybeReplay
Definition:
ReplayCache.h:20
proxygen
fizz
fizz
server
ReplayCache.h
Generated by
1.8.11