TARAXA
watches.hpp File Reference
#include <chrono>
#include <queue>
#include "LogFilter.hpp"
#include "common/global_const.hpp"
#include "data.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  taraxa::net::rpc::eth::WatchGroupConfig
 
struct  taraxa::net::rpc::eth::placeholder_t
 
class  taraxa::net::rpc::eth::WatchGroup< type_, InputType_, OutputType_, Params >
 
struct  taraxa::net::rpc::eth::WatchGroup< type_, InputType_, OutputType_, Params >::Watch
 
class  taraxa::net::rpc::eth::Watches
 

Namespaces

 taraxa
 
 taraxa::net
 
 taraxa::net::rpc
 
 taraxa::net::rpc::eth
 

Typedefs

using taraxa::net::rpc::eth::time_point = std::chrono::system_clock::time_point
 
using taraxa::net::rpc::eth::WatchesConfig = std::array< WatchGroupConfig, WatchType::COUNT >
 
using taraxa::net::rpc::eth::WatchID = uint64_t
 

Enumerations

enum  taraxa::net::rpc::eth::WatchType { taraxa::net::rpc::eth::new_blocks , taraxa::net::rpc::eth::new_transactions , taraxa::net::rpc::eth::logs , taraxa::net::rpc::eth::COUNT }
 

Functions

 taraxa::net::rpc::eth::DEV_SIMPLE_EXCEPTION (WatchLimitExceeded)
 
 taraxa::net::rpc::eth::GLOBAL_CONST (WatchType, watch_id_type_mask_bits)
 

Class Documentation

◆ taraxa::net::rpc::eth::WatchGroupConfig

struct taraxa::net::rpc::eth::WatchGroupConfig
Class Members
seconds idle_timeout
uint64_t max_watches

◆ taraxa::net::rpc::eth::placeholder_t

struct taraxa::net::rpc::eth::placeholder_t

◆ taraxa::net::rpc::eth::WatchGroup::Watch

struct taraxa::net::rpc::eth::WatchGroup::Watch

template<WatchType type_, typename InputType_, typename OutputType_ = placeholder_t, typename Params = placeholder_t>
struct taraxa::net::rpc::eth::WatchGroup< type_, InputType_, OutputType_, Params >::Watch

Collaboration diagram for taraxa::net::rpc::eth::WatchGroup< type_, InputType_, OutputType_, Params >::Watch:
Class Members
time_point last_touched
DefaultConstructCopyableMovable< shared_mutex > mu
Params params
vector< OutputType > updates