Leosac  0.8.0
Open Source Access Control
Leosac::Module::Mqtt::MqttServerConfig Struct Reference

An instance of this class represents the configuration of one Mqtt server. More...

#include <MqttConfig.hpp>

+ Inheritance diagram for Leosac::Module::Mqtt::MqttServerConfig:
+ Collaboration diagram for Leosac::Module::Mqtt::MqttServerConfig:

Public Member Functions

 MqttServerConfig ()
 
 MqttServerConfig (const MqttServerConfig &)=default
 
std::string client_id () const
 
std::string subscribe_prefix () const
 
std::string publish_prefix () const
 
std::string username () const
 
std::string password () const
 
bool ssl () const
 
std::string ssl_ca_certs () const
 
std::string ssl_client_certfile () const
 
std::string ssl_client_keyfile () const
 
bool ssl_insecure () const
 
void validation_callback (odb::callback_event, odb::database &) const
 ODB callback wrt database operation. More...
 
- Public Member Functions inherited from Leosac::Hardware::ExternalServer
 ExternalServer ()
 
 ExternalServer (const std::string &host, uint16_t port)
 
std::string host () const
 
void host (const std::string host)
 
uint16_t port () const
 
void port (uint16_t port)
 
- Public Member Functions inherited from Leosac::Hardware::Device
 Device ()
 
 Device (DeviceClass device_class)
 
virtual ~Device ()=default
 
UUID id () const
 
const std::string & name () const
 
void name (const std::string &name)
 
DeviceClass device_class () const
 
void device_class (DeviceClass d)
 
bool enabled () const
 
void enabled (bool e)
 
uint64_t odb_version () const
 

Public Attributes

std::string client_id_
 
std::string subscribe_prefix_
 
std::string publish_prefix_
 
std::string username_
 
std::string password_
 
bool ssl_
 
std::string ssl_ca_certs_
 
std::string ssl_client_certfile_
 
std::string ssl_client_keyfile_
 
bool ssl_insecure_
 

Additional Inherited Members

- Protected Attributes inherited from Leosac::Hardware::ExternalServer
std::string host_
 
uint16_t port_
 

Detailed Description

An instance of this class represents the configuration of one Mqtt server.

Definition at line 44 of file MqttConfig.hpp.

Constructor & Destructor Documentation

◆ MqttServerConfig() [1/2]

Leosac::Module::Mqtt::MqttServerConfig::MqttServerConfig ( )
inline

Definition at line 46 of file MqttConfig.hpp.

◆ MqttServerConfig() [2/2]

Leosac::Module::Mqtt::MqttServerConfig::MqttServerConfig ( const MqttServerConfig )
default

Member Function Documentation

◆ client_id()

std::string Leosac::Module::Mqtt::MqttServerConfig::client_id ( ) const
inline

Definition at line 57 of file MqttConfig.hpp.

◆ password()

std::string Leosac::Module::Mqtt::MqttServerConfig::password ( ) const
inline

Definition at line 77 of file MqttConfig.hpp.

◆ publish_prefix()

std::string Leosac::Module::Mqtt::MqttServerConfig::publish_prefix ( ) const
inline

Definition at line 67 of file MqttConfig.hpp.

◆ ssl()

bool Leosac::Module::Mqtt::MqttServerConfig::ssl ( ) const
inline

Definition at line 82 of file MqttConfig.hpp.

◆ ssl_ca_certs()

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_ca_certs ( ) const
inline

Definition at line 87 of file MqttConfig.hpp.

◆ ssl_client_certfile()

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_client_certfile ( ) const
inline

Definition at line 92 of file MqttConfig.hpp.

◆ ssl_client_keyfile()

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_client_keyfile ( ) const
inline

Definition at line 97 of file MqttConfig.hpp.

◆ ssl_insecure()

bool Leosac::Module::Mqtt::MqttServerConfig::ssl_insecure ( ) const
inline

Definition at line 102 of file MqttConfig.hpp.

◆ subscribe_prefix()

std::string Leosac::Module::Mqtt::MqttServerConfig::subscribe_prefix ( ) const
inline

Definition at line 62 of file MqttConfig.hpp.

◆ username()

std::string Leosac::Module::Mqtt::MqttServerConfig::username ( ) const
inline

Definition at line 72 of file MqttConfig.hpp.

◆ validation_callback()

void Leosac::Module::Mqtt::MqttServerConfig::validation_callback ( odb::callback_event  e,
odb::database &  db 
) const
virtual

ODB callback wrt database operation.

Reimplemented from Leosac::Hardware::ExternalServer.

Definition at line 51 of file MqttConfig.cpp.

Member Data Documentation

◆ client_id_

std::string Leosac::Module::Mqtt::MqttServerConfig::client_id_

Definition at line 112 of file MqttConfig.hpp.

◆ password_

std::string Leosac::Module::Mqtt::MqttServerConfig::password_

Definition at line 116 of file MqttConfig.hpp.

◆ publish_prefix_

std::string Leosac::Module::Mqtt::MqttServerConfig::publish_prefix_

Definition at line 114 of file MqttConfig.hpp.

◆ ssl_

bool Leosac::Module::Mqtt::MqttServerConfig::ssl_

Definition at line 117 of file MqttConfig.hpp.

◆ ssl_ca_certs_

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_ca_certs_

Definition at line 118 of file MqttConfig.hpp.

◆ ssl_client_certfile_

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_client_certfile_

Definition at line 119 of file MqttConfig.hpp.

◆ ssl_client_keyfile_

std::string Leosac::Module::Mqtt::MqttServerConfig::ssl_client_keyfile_

Definition at line 120 of file MqttConfig.hpp.

◆ ssl_insecure_

bool Leosac::Module::Mqtt::MqttServerConfig::ssl_insecure_

Definition at line 121 of file MqttConfig.hpp.

◆ subscribe_prefix_

std::string Leosac::Module::Mqtt::MqttServerConfig::subscribe_prefix_

Definition at line 113 of file MqttConfig.hpp.

◆ username_

std::string Leosac::Module::Mqtt::MqttServerConfig::username_

Definition at line 115 of file MqttConfig.hpp.


The documentation for this struct was generated from the following files: