Documentation ¶
Index ¶
- type Repository
- func (repo *Repository) GetAttributtesByUserId(userId uint) ([]gooauthmodel.GoUserUserAttributtes, error)
- func (repo *Repository) GetPathAllowByUser(userId uint) ([]string, error)
- func (repo *Repository) GetRoleByName(roleName string) (*gooauthmodel.GoUserRole, error)
- func (repo *Repository) GetRolesByUserAndRole(userId, roleId uint) ([]string, error)
- func (repo *Repository) GetUserByEmail(userEmail string) (*gooauthmodel.GoUserUser, error)
- func (repo *Repository) GetUserById(userId uint) (*gooauthmodel.GoUserUser, error)
- func (repo *Repository) Migrate00() error
- func (repo *Repository) MigrateO1() error
- func (repo *Repository) RunMigrate(version string, migration func() error) error
- func (repo *Repository) RunMigrations() error
- func (repo *Repository) SaveAttributtes(userId uint, attr []gooauthmodel.GoUserUserAttributtes) error
- func (repo *Repository) SaveUser(user *gooauthmodel.GoUserUser) error
- func (repo *Repository) SaveVersion(version string) error
- func (repo *Repository) ValidateMigrate(version string) (bool, 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
}
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)
Click to show internal directories.
Click to hide internal directories.