user

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2022 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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 NewRepository

func NewRepository(db *gorm.DB) *Repository

NewRepository ...

func (*Repository) All

func (p *Repository) All() ([]model.User, error)

All ...

func (*Repository) Create added in v1.2.1

func (p *Repository) Create(user *model.User) (*model.User, error)

Create ...

func (*Repository) CreateSchema

func (p *Repository) CreateSchema(schema string) error

CreateSchema ...

func (*Repository) Delete

func (p *Repository) Delete(id uint, schema string) error

Delete ...

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 ...

func (*Repository) Migrate

func (p *Repository) Migrate() error

Migrate ...

func (*Repository) Save

func (p *Repository) Save(user *model.User) (*model.User, error)

Save ...

func (*Repository) Update added in v1.2.1

func (p *Repository) Update(user *model.User) (*model.User, error)

Update ...

Jump to

Keyboard shortcuts

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