repository

package
v0.0.0-...-2b4ca68 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 New

func New() (*Storage, error)

func (*Storage) Begin

func (s *Storage) Begin() *gorm.DB

func (*Storage) CreateFailedLoginAttempt

func (s *Storage) CreateFailedLoginAttempt(attempt *auth.FailedLoginAttemp) error

func (*Storage) CreateShop

func (s *Storage) CreateShop(shop *shop.Shop) error

func (*Storage) CreateUser

func (s *Storage) CreateUser(user *auth.User) error

func (*Storage) GetDB

func (s *Storage) GetDB() *gorm.DB

func (*Storage) GetFailedLoginAttempts

func (s *Storage) GetFailedLoginAttempts(ipAddress string) ([]*auth.FailedLoginAttemp, error)

func (*Storage) GetUser

func (s *Storage) GetUser(user *auth.User) (*auth.User, error)

func (*Storage) Save

func (s *Storage) Save(obj interface{})

Jump to

Keyboard shortcuts

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