Kagome
Polkadot Runtime Engine in C++17
|
an http server interface to expose metrics on request with custom request handler More...
#include <exposer.hpp>
Classes | |
struct | Configuration |
Public Types | |
using | Context = boost::asio::io_context |
Public Member Functions | |
void | setHandler (const std::shared_ptr< Handler > &handler) |
sets handler and takes ownership More... | |
virtual | ~Exposer ()=default |
virtual bool | prepare ()=0 |
prepare interface for AppStateManager More... | |
virtual bool | start ()=0 |
start interface for AppStateManager More... | |
virtual void | stop ()=0 |
stop interface for AppStateManager More... | |
Protected Types | |
using | Acceptor = boost::asio::ip::tcp::acceptor |
using | Endpoint = boost::asio::ip::tcp::endpoint |
Protected Attributes | |
std::shared_ptr< Handler > | handler_ |
an http server interface to expose metrics on request with custom request handler
Definition at line 21 of file exposer.hpp.
struct kagome::metrics::Exposer::Configuration |
Definition at line 29 of file exposer.hpp.
Class Members | ||
---|---|---|
Endpoint | endpoint |
|
protected |
Definition at line 23 of file exposer.hpp.
using kagome::metrics::Exposer::Context = boost::asio::io_context |
Definition at line 27 of file exposer.hpp.
|
protected |
Definition at line 24 of file exposer.hpp.
|
virtualdefault |
|
pure virtual |
prepare interface for AppStateManager
Implemented in kagome::metrics::ExposerImpl.
|
inline |
sets handler and takes ownership
Definition at line 36 of file exposer.hpp.
|
pure virtual |
start interface for AppStateManager
Implemented in kagome::metrics::ExposerImpl.
|
pure virtual |
stop interface for AppStateManager
Implemented in kagome::metrics::ExposerImpl.
|
protected |
Definition at line 58 of file exposer.hpp.