lintel 0.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lintel::HistoryController Class Reference

#include <HistoryController.h>

Inheritance diagram for lintel::HistoryController:
lintel::Controller lintel::GroupProvider

Public Member Functions

 HistoryController (const std::shared_ptr< IAuthService > &authService, std::shared_ptr< GroupRepository > groupRepository, std::shared_ptr< HistoryRepository > historyRepository)
 
- Public Member Functions inherited from lintel::Controller
 Controller (std::shared_ptr< IAuthService > authService)
 
 ~Controller () override=default
 
void setTrustedProxies (std::vector< std::string > trustedProxies)
 
void registerMethods (std::shared_ptr< httplib::Server > &server)
 
- Public Member Functions inherited from lintel::GroupProvider
 GroupProvider ()=default
 
void add (const Group &group)
 
virtual ~GroupProvider ()=default
 
const std::vector< Group > & provide ()
 

Additional Inherited Members

- Protected Types inherited from lintel::Controller
enum  HttpType { Get , Put , Post , Delete }
 
using HandlerArgs = void(const httplib::Request &, httplib::Response &)
 
using HandlerWithContentReaderArgs = void(const httplib::Request &, httplib::Response &, const httplib::ContentReader &)
 
using Handler = std::function< HandlerArgs >
 
using HandlerWithContentReader = std::function< HandlerWithContentReaderArgs >
 
- Protected Member Functions inherited from lintel::Controller
std::string clientIpOf (const httplib::Request &request)
 
template<class Type , HttpType httpType>
Type addMethod (const std::string &pattern, Type handler)
 
- Static Protected Member Functions inherited from lintel::Controller
static PagingParams pagingParamsOf (const httplib::Request &request)
 
- Protected Attributes inherited from lintel::Controller
std::shared_ptr< IAuthService > m_authService
 
ClientIpResolver m_ipResolver
 
std::map< HttpType, std::vector< Method > > m_methods
 

Detailed Description

HTTP controller that serves history data for a given process/service/label

Constructor & Destructor Documentation

◆ HistoryController()

lintel::HistoryController::HistoryController ( const std::shared_ptr< IAuthService > &  authService,
std::shared_ptr< GroupRepository >  groupRepository,
std::shared_ptr< HistoryRepository >  historyRepository 
)
explicit

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