Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyExists = errors.New("user already exists")
)
Functions ¶
func GenPasswordHash ¶
Types ¶
type AuthRepository ¶
type AuthRepository interface { Create(ctx context.Context, req *UserRequest) error Get(ctx context.Context, req *UserRequest) (*models.User, error) }
type Repository ¶
type Repository struct {
AuthRepository
}
func NewRepository ¶
func NewRepository(db *gorm.DB) *Repository
type UserRequest ¶
Click to show internal directories.
Click to hide internal directories.