Documentation ¶
Index ¶
- type Storage
- func (s *Storage) Begin() *gorm.DB
- func (s *Storage) CreateFailedLoginAttempt(attempt *auth.FailedLoginAttemp) error
- func (s *Storage) CreateShop(shop *shop.Shop) error
- func (s *Storage) CreateUser(user *auth.User) error
- func (s *Storage) GetDB() *gorm.DB
- func (s *Storage) GetFailedLoginAttempts(ipAddress string) ([]*auth.FailedLoginAttemp, error)
- func (s *Storage) GetUser(user *auth.User) (*auth.User, error)
- func (s *Storage) Save(obj interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateFailedLoginAttempt ¶
func (s *Storage) CreateFailedLoginAttempt(attempt *auth.FailedLoginAttemp) error
func (*Storage) GetFailedLoginAttempts ¶
func (s *Storage) GetFailedLoginAttempts(ipAddress string) ([]*auth.FailedLoginAttemp, error)
Click to show internal directories.
Click to hide internal directories.