Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bcrypt ¶
type Bcrypt struct {
// contains filtered or unexported fields
}
func (Bcrypt) GenerateHash ¶
type Crypto ¶
type Crypto interface { GenerateHash(ctx context.Context, plainText string) (string, error) VerifyHash(ctx context.Context, plainText string, hash string) (bool, error) }
func NewBcrypt ¶
func NewBcrypt(config configs.ConfigBcrypt) Crypto
func NewCryptoMock ¶
func NewCryptoMock() Crypto
func ProviderSet ¶
type CryptoMock ¶
type CryptoMock struct{}
func (CryptoMock) GenerateHash ¶
func (CryptoMock) VerifyHash ¶
Click to show internal directories.
Click to hide internal directories.