Documentation ¶
Index ¶
- type UserRepository
- func (u *UserRepository) Create(ctx context.Context, user generated.IEntity) error
- func (u *UserRepository) Delete(ctx context.Context, id string) error
- func (u *UserRepository) GetById(ctx context.Context, id string) (generated.IEntity, error)
- func (u *UserRepository) GetByName(ctx context.Context, name string) (generated.IEntity, error)
- func (u *UserRepository) GetClient() *sqlx.DB
- func (u *UserRepository) List(ctx context.Context) ([]generated.IEntity, error)
- func (u *UserRepository) Update(ctx context.Context, entity generated.IEntity) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRepository ¶
type UserRepository struct {
// contains filtered or unexported fields
}
UserRepository is a struct that defines the methods that a user repository should implement
func NewUserRepository ¶
func NewUserRepository(dbContext database.IPersistenceDatabase) *UserRepository
func (*UserRepository) Delete ¶
func (u *UserRepository) Delete(ctx context.Context, id string) error
func (*UserRepository) GetClient ¶
func (u *UserRepository) GetClient() *sqlx.DB
Click to show internal directories.
Click to hide internal directories.