gooauthrepository

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: GPL-3.0 Imports: 6 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
}

func InitiateRepo

func InitiateRepo(db *gorm.DB) *Repository

func (*Repository) GetAttributtesByUserId added in v0.0.2

func (repo *Repository) GetAttributtesByUserId(userId uint) ([]gooauthmodel.GoUserUserAttributtes, error)

func (*Repository) GetPathAllowByUser

func (repo *Repository) GetPathAllowByUser(userId uint) ([]string, error)

func (*Repository) GetRoleByName

func (repo *Repository) GetRoleByName(roleName string) (*gooauthmodel.GoUserRole, error)

func (*Repository) GetRolesByUserAndRole

func (repo *Repository) GetRolesByUserAndRole(userId, roleId uint) ([]string, error)

func (*Repository) GetUserByEmail

func (repo *Repository) GetUserByEmail(userEmail string) (*gooauthmodel.GoUserUser, error)

func (*Repository) GetUserById

func (repo *Repository) GetUserById(userId uint) (*gooauthmodel.GoUserUser, error)

func (*Repository) Migrate00

func (repo *Repository) Migrate00() error

func (*Repository) MigrateO1

func (repo *Repository) MigrateO1() error

func (*Repository) RunMigrate

func (repo *Repository) RunMigrate(version string, migration func() error) error

func (*Repository) RunMigrations

func (repo *Repository) RunMigrations() error

func (*Repository) SaveAttributtes

func (repo *Repository) SaveAttributtes(userId uint, attr []gooauthmodel.GoUserUserAttributtes) error

func (*Repository) SaveUser

func (repo *Repository) SaveUser(user *gooauthmodel.GoUserUser) error

func (*Repository) SaveVersion

func (repo *Repository) SaveVersion(version string) error

func (*Repository) ValidateMigrate

func (repo *Repository) ValidateMigrate(version string) (bool, error)

Jump to

Keyboard shortcuts

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