TrinityCore
SecretMgr Class Reference

#include <SecretMgr.h>

Classes

struct  Secret
 

Public Member Functions

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

Static Public Member Functions

static SecretMgrinstance ()
 

Static Public Attributes

static SecretOwner OWNER
 

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 45 of file SecretMgr.h.

Constructor & Destructor Documentation

◆ SecretMgr() [1/2]

SecretMgr::SecretMgr ( )
inlineprivate

Definition at line 48 of file SecretMgr.h.

◆ ~SecretMgr()

SecretMgr::~SecretMgr ( )
inlineprivate

Definition at line 49 of file SecretMgr.h.

◆ SecretMgr() [2/2]

SecretMgr::SecretMgr ( SecretMgr const &  )
delete

Member Function Documentation

◆ AttemptLoad()

void SecretMgr::AttemptLoad ( Secrets  i,
LogLevel  errorLevel,
std::unique_lock< std::mutex > const &   
)
private

Definition at line 109 of file SecretMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AttemptTransition()

Optional< std::string > SecretMgr::AttemptTransition ( Secrets  i,
Optional< BigNumber > const &  newSecret,
Optional< BigNumber > const &  oldSecret,
bool  hadOldSecret 
) const
private

Definition at line 171 of file SecretMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSecret()

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

Definition at line 100 of file SecretMgr.cpp.

+ Here is the call graph for this function:

◆ Initialize()

void SecretMgr::Initialize ( SecretOwner  owner)

Definition at line 85 of file SecretMgr.cpp.

+ Here is the call graph for this function:

◆ instance()

SecretMgr * SecretMgr::instance ( )
static

Definition at line 53 of file SecretMgr.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _secrets

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

Definition at line 80 of file SecretMgr.h.

◆ OWNER

SecretOwner SecretMgr::OWNER
static

Definition at line 52 of file SecretMgr.h.


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