Versions in this module Expand all Collapse all v0 v0.2.1 Nov 16, 2021 Changes in this version + func SetUsersRepository(ur *UsersRepository) + type UsersRepository struct + DB *sql.DB + func NewUsersRepository(db *sql.DB) *UsersRepository + func (u *UsersRepository) GetAll() error + func (u *UsersRepository) GetUserByName(username string) (models.User, bool) + func (u *UsersRepository) SaveUser(us models.User) error + type Worker interface + GetUserByName func(username string) (models.User, bool) + SaveUser func(models.User) error + func GetUsersRepository() Worker