30std::unique_ptr<GPop::Store>
GPop::newStore(
const G::Path & spool_dir ,
const Store::Config & config )
32 return std::make_unique<Store>( spool_dir , config ) ;
35std::unique_ptr<GAuth::SaslServerSecrets>
GPop::newSecrets(
const std::string & path )
43 return std::make_unique<Server>( es , store , secrets , config ) ;
46void GPop::report(
const Server * server ,
const std::string & group )
49 server->report( group ) ;
An interface used by GAuth::SaslServer to obtain authentication secrets.
static std::unique_ptr< SaslServerSecrets > newServerSecrets(const std::string &spec, const std::string &log_name)
Factory function for server secrets.
A lightweight object containing an ExceptionHandler pointer, optional ExceptionSource pointer and opt...
A Path object represents a file system path.
std::unique_ptr< GAuth::SaslServerSecrets > newSecrets(const std::string &path)
Creates a new SaslServerSecrets for newStore().
std::unique_ptr< Store > newStore(const G::Path &spool_dir, const Store::Config &)
Creates a new Pop::Store.
std::unique_ptr< Server > newServer(GNet::EventState, Store &, const GAuth::SaslServerSecrets &, const Server::Config &)
Creates a new server.
bool enabled() noexcept
Returns true if pop code is built in.
void report(const Server *, const std::string &group={})
Calls GPop::Server::report().