proxygen
wangle::ChangeTypeFilter Class Reference
Inheritance diagram for wangle::ChangeTypeFilter:
wangle::ServiceFilter< int, std::string, std::string, int > wangle::Service< int, std::string >

Public Member Functions

 ChangeTypeFilter (std::shared_ptr< Service< std::string, int >> service)
 
Future< std::stringoperator() (int req) override
 
- Public Member Functions inherited from wangle::ServiceFilter< int, std::string, std::string, int >
 ServiceFilter (std::shared_ptr< Service< std::string, int >> service)
 
 ~ServiceFilter () override=default
 
folly::Future< folly::Unitclose () override
 
bool isAvailable () override
 
- Public Member Functions inherited from wangle::Service< int, std::string >
virtual ~Service ()=default
 

Additional Inherited Members

- Protected Attributes inherited from wangle::ServiceFilter< int, std::string, std::string, int >
std::shared_ptr< Service< std::string, int > > service_
 

Detailed Description

Definition at line 179 of file ServiceTest.cpp.

Constructor & Destructor Documentation

wangle::ChangeTypeFilter::ChangeTypeFilter ( std::shared_ptr< Service< std::string, int >>  service)
inlineexplicit

Member Function Documentation

Future<std::string> wangle::ChangeTypeFilter::operator() ( int  req)
inlineoverridevirtual

Implements wangle::Service< int, std::string >.

Definition at line 186 of file ServiceTest.cpp.

186  {
187  return (*service_)(folly::to<std::string>(req)).thenValue([](int resp) {
188  return folly::to<std::string>(resp);
189  });
190  }
std::shared_ptr< Service< std::string, int > > service_
Definition: Service.h:82

The documentation for this class was generated from the following file: