Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthManager ¶
func GetAuthManager(authInstance AuthInstance) (authpkg.AuthRepo, error)
func GetTokenManger ¶
func GetTokenManger(authInstance AuthInstance) (authpkg.TokenManger, error)
Types ¶
type AuthCollection ¶
type AuthCollection struct { TokenManager authpkg.TokenManger AuthManager authpkg.AuthRepo }
type AuthInstance ¶
type AuthInstance interface { GetTokenManger() (authpkg.TokenManger, error) GetAuthManger() (authpkg.AuthRepo, error) }
func NewAuthInstance ¶
func NewAuthInstance(conf *configpb.Encrypt_TokenEncrypt, redisCC redis.UniversalClient, loggerManager loggerutil.LoggerManager) (AuthInstance, error)
func NewSingletonAuthInstance ¶
func NewSingletonAuthInstance( conf *configpb.Encrypt_TokenEncrypt, redisCC redis.UniversalClient, loggerManager loggerutil.LoggerManager, ) (AuthInstance, error)
Click to show internal directories.
Click to hide internal directories.