Versions in this module Expand all Collapse all v1 v1.2.0 Sep 15, 2025 v1.1.0 Sep 14, 2025 v1.0.1 Jul 27, 2025 v1.0.0 Jul 27, 2025 Changes in this version + func ParseStringUint(s string) (uint, error) + type GormRole struct + CreatedAt time.Time + ID uint + Name string + UpdatedAt time.Time + type GormRoleRepository struct + func NewGormRoleRepository(db *gorm.DB) *GormRoleRepository + func (r *GormRoleRepository) Create(ctx context.Context, role core.Role) (*core.Role, error) + func (r *GormRoleRepository) Delete(ctx context.Context, id string) error + func (r *GormRoleRepository) GetByID(ctx context.Context, id string) (*core.Role, error) + func (r *GormRoleRepository) GetByName(ctx context.Context, name string) (*core.Role, error) + func (r *GormRoleRepository) List(ctx context.Context) ([]core.Role, error) + func (r *GormRoleRepository) Update(ctx context.Context, role core.Role) (*core.Role, error) + type GormUser struct + CreatedAt time.Time + Email string + HashedPassword string + ID uint + LastSeen time.Time + Role GormRole + RoleID uint + UpdatedAt time.Time + Username string + type GormUserRepository struct + func NewGormUserRepository(db *gorm.DB) *GormUserRepository + func (r *GormUserRepository) Create(ctx context.Context, user core.User) (*core.User, error) + func (r *GormUserRepository) Delete(ctx context.Context, id string) error + func (r *GormUserRepository) GetByEmail(ctx context.Context, email string) (*core.User, error) + func (r *GormUserRepository) GetByID(ctx context.Context, id string) (*core.User, error) + func (r *GormUserRepository) GetByUsername(ctx context.Context, username string) (*core.User, error) + func (r *GormUserRepository) List(ctx context.Context) ([]core.User, error) + func (r *GormUserRepository) Update(ctx context.Context, user core.User) (*core.User, error)