This commit introduces SessionManager as an interface with a GenerateSessionKey() method.
Emmy server now contains a field that must implement this interface. This decoupling will support easier refactoring in the future, as we will be able to easily switch to a different implementation of session key generation.
Existing session key generation logic was moved to the interface method of the RandSessionKeyGen struct.
This commit introduces
SessionManager
as an interface with aGenerateSessionKey()
method. Emmy server now contains a field that must implement this interface. This decoupling will support easier refactoring in the future, as we will be able to easily switch to a different implementation of session key generation.Existing session key generation logic was moved to the interface method of the
RandSessionKeyGen
struct.