Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
User UserRepository
}
func NewRepository ¶
func NewRepository() *Repository
type UserRepository ¶
type UserRepository interface { GetUsers(ctx context.Context) ([]model.User, error) GetUsersWithPagination(ctx context.Context, limit int, offset int) ([]model.User, error) AddUser(ctx context.Context, user model.User) (id int, err error) }
func NewUserRepository ¶
func NewUserRepository(pgxPool *pgxpool.Pool, redisClient *redis.Client) UserRepository
type UserRepositoryImpl ¶
type UserRepositoryImpl struct {
// contains filtered or unexported fields
}
func (*UserRepositoryImpl) GetUsersWithPagination ¶
func (u *UserRepositoryImpl) GetUsersWithPagination(ctx context.Context, limit int, offset int) ([]model.User, error)
Work in progress
Click to show internal directories.
Click to hide internal directories.