Documentation ¶
Index ¶
- type Options
- type Repository
- type UserRepository
- func (r *UserRepository) Create(ctx context.Context, u *model.User) (*model.User, error)
- func (r *UserRepository) Delete(ctx context.Context, id string) error
- func (r *UserRepository) GetAll(ctx context.Context, name string) ([]model.User, error)
- func (r *UserRepository) GetByID(ctx context.Context, id uuid.UUID) (*model.User, error)
- func (r *UserRepository) Update(ctx context.Context, u *model.User) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
UserRepository *UserRepository
}
Repository combines all repositories
func CreateRepository ¶
func CreateRepository(options *Options) (*Repository, error)
CreateRepository create a implementation of repository with all injected dependencies
type UserRepository ¶
UserRepository is a repository implementation of service layer UserRepository interface
func (*UserRepository) Delete ¶
func (r *UserRepository) Delete(ctx context.Context, id string) error
Delete a user
Click to show internal directories.
Click to hide internal directories.