mock

package
v0.0.0-...-9518a5e Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Authenticator

type Authenticator struct {
	mock.Mock
}

Authenticator is a mock Authenticator.

func (*Authenticator) HashPassword

func (m *Authenticator) HashPassword(ctx context.Context, password string) (string, error)

HashPassword satisfies our authenticator interface.

func (*Authenticator) ValidateLogin

func (m *Authenticator) ValidateLogin(ctx context.Context, hash, password, totpSecret, totpCode string) (bool, error)

ValidateLogin satisfies our authenticator interface.

Jump to

Keyboard shortcuts

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