fix: remove unused dependencies
This commit was merged in pull request #134.
This commit is contained in:
8
main.go
8
main.go
@@ -123,10 +123,10 @@ func createHandler(d *sqlx.DB, serverSettings *types.Settings) http.Handler {
|
|||||||
mailService := service.NewMail(serverSettings)
|
mailService := service.NewMail(serverSettings)
|
||||||
|
|
||||||
authService := service.NewAuth(authDb, randomService, clockService, mailService, serverSettings)
|
authService := service.NewAuth(authDb, randomService, clockService, mailService, serverSettings)
|
||||||
accountService := service.NewAccount(d, randomService, clockService, serverSettings)
|
accountService := service.NewAccount(d, randomService, clockService)
|
||||||
treasureChestService := service.NewTreasureChest(d, randomService, clockService, serverSettings)
|
treasureChestService := service.NewTreasureChest(d, randomService, clockService)
|
||||||
transactionService := service.NewTransaction(d, randomService, clockService, serverSettings)
|
transactionService := service.NewTransaction(d, randomService, clockService)
|
||||||
transactionRecurringService := service.NewTransactionRecurring(d, randomService, clockService, serverSettings)
|
transactionRecurringService := service.NewTransactionRecurring(d, randomService, clockService)
|
||||||
|
|
||||||
render := handler.NewRender()
|
render := handler.NewRender()
|
||||||
indexHandler := handler.NewIndex(render)
|
indexHandler := handler.NewIndex(render)
|
||||||
|
|||||||
@@ -36,15 +36,13 @@ type AccountImpl struct {
|
|||||||
db *sqlx.DB
|
db *sqlx.DB
|
||||||
clock Clock
|
clock Clock
|
||||||
random Random
|
random Random
|
||||||
settings *types.Settings
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewAccount(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) Account {
|
func NewAccount(db *sqlx.DB, random Random, clock Clock) Account {
|
||||||
return AccountImpl{
|
return AccountImpl{
|
||||||
db: db,
|
db: db,
|
||||||
clock: clock,
|
clock: clock,
|
||||||
random: random,
|
random: random,
|
||||||
settings: settings,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,15 +40,13 @@ type TransactionImpl struct {
|
|||||||
db *sqlx.DB
|
db *sqlx.DB
|
||||||
clock Clock
|
clock Clock
|
||||||
random Random
|
random Random
|
||||||
settings *types.Settings
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTransaction(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) Transaction {
|
func NewTransaction(db *sqlx.DB, random Random, clock Clock) Transaction {
|
||||||
return TransactionImpl{
|
return TransactionImpl{
|
||||||
db: db,
|
db: db,
|
||||||
clock: clock,
|
clock: clock,
|
||||||
random: random,
|
random: random,
|
||||||
settings: settings,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -39,15 +39,13 @@ type TransactionRecurringImpl struct {
|
|||||||
db *sqlx.DB
|
db *sqlx.DB
|
||||||
clock Clock
|
clock Clock
|
||||||
random Random
|
random Random
|
||||||
settings *types.Settings
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTransactionRecurring(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) TransactionRecurring {
|
func NewTransactionRecurring(db *sqlx.DB, random Random, clock Clock) TransactionRecurring {
|
||||||
return TransactionRecurringImpl{
|
return TransactionRecurringImpl{
|
||||||
db: db,
|
db: db,
|
||||||
clock: clock,
|
clock: clock,
|
||||||
random: random,
|
random: random,
|
||||||
settings: settings,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,15 +37,13 @@ type TreasureChestImpl struct {
|
|||||||
db *sqlx.DB
|
db *sqlx.DB
|
||||||
clock Clock
|
clock Clock
|
||||||
random Random
|
random Random
|
||||||
settings *types.Settings
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewTreasureChest(db *sqlx.DB, random Random, clock Clock, settings *types.Settings) TreasureChest {
|
func NewTreasureChest(db *sqlx.DB, random Random, clock Clock) TreasureChest {
|
||||||
return TreasureChestImpl{
|
return TreasureChestImpl{
|
||||||
db: db,
|
db: db,
|
||||||
clock: clock,
|
clock: clock,
|
||||||
random: random,
|
random: random,
|
||||||
settings: settings,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user