Documentation ¶
Index ¶
- type DBConnectionMock
- func (dbConn DBConnectionMock) Get2FASecret(username string) (string, error)
- func (dbConn DBConnectionMock) GetEnabled2FA(username string) (bool, error)
- func (dbConn DBConnectionMock) Save2FASecret(username, secret string) error
- func (dbConn DBConnectionMock) SaveUser(user *db.UserModel) error
- func (dbConn DBConnectionMock) UpdateEnabled2FA(username string, enabled bool) error
- func (dbConn DBConnectionMock) UserByUsername(username string) (*db.UserDBEntity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConnectionMock ¶
type DBConnectionMock struct { }
func (DBConnectionMock) Get2FASecret ¶
func (dbConn DBConnectionMock) Get2FASecret(username string) (string, error)
func (DBConnectionMock) GetEnabled2FA ¶
func (dbConn DBConnectionMock) GetEnabled2FA(username string) (bool, error)
func (DBConnectionMock) Save2FASecret ¶
func (dbConn DBConnectionMock) Save2FASecret(username, secret string) error
func (DBConnectionMock) SaveUser ¶
func (dbConn DBConnectionMock) SaveUser(user *db.UserModel) error
func (DBConnectionMock) UpdateEnabled2FA ¶
func (dbConn DBConnectionMock) UpdateEnabled2FA(username string, enabled bool) error
func (DBConnectionMock) UserByUsername ¶
func (dbConn DBConnectionMock) UserByUsername(username string) (*db.UserDBEntity, error)
Click to show internal directories.
Click to hide internal directories.