Skip to content

Commit

Permalink
refactoring main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberRoute committed Nov 3, 2023
1 parent b1b6886 commit e5e41dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ func NewDatabase(dsn string) (*sql.DB, error) {
return nil, err
}
return db, nil
}
}
2 changes: 1 addition & 1 deletion pkg/repository/dbrepo/dbrepo.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ func NewPostgresRepo(conn *sql.DB, a *config.AppConfig) repository.DatabaseRepo
App: a,
DB: conn,
}
}
}
2 changes: 1 addition & 1 deletion pkg/repository/dbrepo/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package dbrepo

func (m *postgresDBRepo) AllUrls() bool {
return true
}
}
2 changes: 1 addition & 1 deletion pkg/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ package repository

type DatabaseRepo interface {
AllUrls() bool
}
}

0 comments on commit e5e41dd

Please sign in to comment.