Documentation ¶
Index ¶
- Variables
- type InMemory
- func (i *InMemory) GenerateKeyString(code, purpose string) string
- func (i *InMemory) Get(code, purpose string) (*otp.EmailCode, error)
- func (i *InMemory) List() ([]otp.EmailCode, error)
- func (i *InMemory) Register(code, purpose, entity string) (*otp.EmailCode, error)
- func (i *InMemory) Remove(code, purpose string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrCodeNotFound is returned when the code is not found ErrCodeNotFound = fmt.Errorf("code not found") )
Errors
Functions ¶
This section is empty.
Types ¶
type InMemory ¶
type InMemory struct {
// contains filtered or unexported fields
}
func (*InMemory) GenerateKeyString ¶
GenerateKeyString generates a new key string
Click to show internal directories.
Click to hide internal directories.