Documentation ¶
Index ¶
- type Repository
- func (p *Repository) All() ([]model.User, error)
- func (p *Repository) Create(user *model.User) (*model.User, error)
- func (p *Repository) CreateSchema(schema string) error
- func (p *Repository) Delete(id uint, schema string) error
- func (p *Repository) FindAll(argsStr map[string]string, argsInt map[string]int) ([]model.User, error)
- func (p *Repository) FindByCredentials(email, masterPassword string) (*model.User, error)
- func (p *Repository) FindByEmail(email string) (*model.User, error)
- func (p *Repository) FindByID(id uint) (*model.User, error)
- func (p *Repository) FindByUUID(uuid string) (*model.User, error)
- func (p *Repository) Migrate() error
- func (p *Repository) Save(user *model.User) (*model.User, error)
- func (p *Repository) Update(user *model.User) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository ...
func (*Repository) CreateSchema ¶
func (p *Repository) CreateSchema(schema string) error
CreateSchema ...
func (*Repository) FindAll ¶
func (p *Repository) FindAll(argsStr map[string]string, argsInt map[string]int) ([]model.User, error)
FindAll ...
func (*Repository) FindByCredentials ¶
func (p *Repository) FindByCredentials(email, masterPassword string) (*model.User, error)
FindByCredentials ...
func (*Repository) FindByEmail ¶
func (p *Repository) FindByEmail(email string) (*model.User, error)
FindByEmail ...
func (*Repository) FindByID ¶
func (p *Repository) FindByID(id uint) (*model.User, error)
FindByID ...
func (*Repository) FindByUUID ¶ added in v1.1.7
func (p *Repository) FindByUUID(uuid string) (*model.User, error)
FindByUUID ...
Click to show internal directories.
Click to hide internal directories.