Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IUserRepository ¶
type IUserRepository interface { Save(ctx context.Context, user models.User) (int64, error) List(ctx context.Context, offset int, limit int) ([]models.User, error) FindById(ctx context.Context, id int64) (models.User, error) }
func NewUserRepository ¶
func NewUserRepository(db *sqlx.DB) IUserRepository
type UserRepository ¶
type UserRepository struct { IUserRepository // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.