Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemoryPINService ¶
type InMemoryPINService struct {
// contains filtered or unexported fields
}
func (*InMemoryPINService) CurrentPIN ¶
func (s *InMemoryPINService) CurrentPIN() (string, error)
func (*InMemoryPINService) Generate ¶
func (s *InMemoryPINService) Generate() (string, error)
type PINService ¶
type PINService interface { CurrentPIN() (string, error) IsCorrect(pin string) (bool, error) Generate() (string, error) }
func NewInMemoryPINService ¶
func NewInMemoryPINService() PINService
func NewRedisPINService ¶
func NewRedisPINService(addr string, key string) (PINService, error)
type RedisPINService ¶
type RedisPINService struct {
// contains filtered or unexported fields
}
func (*RedisPINService) CurrentPIN ¶
func (s *RedisPINService) CurrentPIN() (string, error)
func (*RedisPINService) Generate ¶
func (s *RedisPINService) Generate() (string, error)
Click to show internal directories.
Click to hide internal directories.