TrinityCore
Loading...
Searching...
No Matches
SecretMgr Class Reference

#include <SecretMgr.h>

Classes

struct  Secret
 

Public Member Functions

 SecretMgr (SecretMgr const &)=delete
 
void Initialize ()
 
Secret const & GetSecret (Secrets i)
 

Static Public Member Functions

static SecretMgr * instance ()
 

Private Member Functions

 SecretMgr ()
 
 ~SecretMgr ()
 
void AttemptLoad (Secrets i, LogLevel errorLevel, std::unique_lock< std::mutex > const &)
 
Optional< std::string > AttemptTransition (Secrets i, Optional< BigNumber > const &newSecret, Optional< BigNumber > const &oldSecret, bool hadOldSecret) const
 

Private Attributes

std::array< Secret, NUM_SECRETS > _secrets
 

Detailed Description

Definition at line 37 of file SecretMgr.h.

Constructor & Destructor Documentation

◆ SecretMgr() [1/2]

SecretMgr::SecretMgr ( )
inlineprivate

Definition at line 40 of file SecretMgr.h.

◆ ~SecretMgr()

SecretMgr::~SecretMgr ( )
inlineprivate

Definition at line 41 of file SecretMgr.h.

◆ SecretMgr() [2/2]

SecretMgr::SecretMgr ( SecretMgr const &  )
delete

Member Function Documentation

◆ AttemptLoad()

◆ AttemptTransition()

◆ GetSecret()

SecretMgr::Secret const & SecretMgr::GetSecret ( Secrets  i)

◆ Initialize()

void SecretMgr::Initialize ( )

Definition at line 86 of file SecretMgr.cpp.

References _secrets, ABORT, AttemptLoad(), flags, LOG_LEVEL_FATAL, NUM_SECRETS, and secret_info.

◆ instance()

SecretMgr * SecretMgr::instance ( )
static

Definition at line 54 of file SecretMgr.cpp.

References instance().

Referenced by instance().

Member Data Documentation

◆ _secrets

std::array<Secret, NUM_SECRETS> SecretMgr::_secrets
private

Definition at line 70 of file SecretMgr.h.

Referenced by AttemptLoad(), GetSecret(), and Initialize().


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