Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoFactory ¶
type RepoFactory interface {
NewUser(getter database.DataContextGetter) User
}
type User ¶
type User interface { FindOneBy(ctx context.Context, spec specification.Set) (entity.User, error) FindBy(ctx context.Context, spec specification.Set) ([]entity.User, error) Create(ctx context.Context, user entity.User) (string, error) Update(ctx context.Context, id string, user entity.User) error Delete(ctx context.Context, id string) error }
User is the interface that wraps the basic CRUD operations for User.
type UserRepoFactory ¶
type UserRepoFactory interface {
NewTender(data.DataContextGetter) User
}
Click to show internal directories.
Click to hide internal directories.