Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Get(ctx context.Context, id uuid.UUID) (entity.User, error) Count(ctx context.Context) (int64, error) Query(ctx context.Context, page, size int) ([]entity.User, error) Create(ctx context.Context, u entity.User) error Update(ctx context.Context, u entity.User) error Delete(ctx context.Context, id uuid.UUID) error }
Repository encapsulates the logic to access users from the data source.
Click to show internal directories.
Click to hide internal directories.