Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseMockSQLDBService ¶
func CloseMockSQLDBService(s *MockSQLDBService) error
Types ¶
type MockHasher ¶
type MockHasher struct{}
func NewMockHasher ¶
func NewMockHasher() *MockHasher
func (*MockHasher) CompareHashAndPassword ¶
func (h *MockHasher) CompareHashAndPassword(hashedPassword string, password string) error
func (*MockHasher) HashPassword ¶
func (h *MockHasher) HashPassword(password string) (string, error)
type MockSQLDBService ¶
func NewMockSQLDBService ¶
func NewMockSQLDBService() (*MockSQLDBService, error)
func (*MockSQLDBService) ExecContext ¶
func (s *MockSQLDBService) ExecContext(query string, args ...interface{}) (sql.Result, error)
func (*MockSQLDBService) QueryContext ¶
func (s *MockSQLDBService) QueryContext(query string, args ...interface{}) (*sql.Rows, error)
func (*MockSQLDBService) QueryRowContext ¶
func (s *MockSQLDBService) QueryRowContext(query string, args ...interface{}) *sql.Row
Click to show internal directories.
Click to hide internal directories.