mocks

package
v0.0.0-...-524bf5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL