25 lines
295 B
Go
25 lines
295 B
Go
|
|
package app
|
||
|
|
|
||
|
|
import (
|
||
|
|
log "github.com/sirupsen/logrus"
|
||
|
|
"task-processor/config"
|
||
|
|
)
|
||
|
|
|
||
|
|
type App struct {
|
||
|
|
config config.Config
|
||
|
|
}
|
||
|
|
|
||
|
|
type Deps struct {
|
||
|
|
Config config.Config
|
||
|
|
}
|
||
|
|
|
||
|
|
func NewApp(deps Deps) *App {
|
||
|
|
return &App{
|
||
|
|
config: deps.Config,
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
func (app *App) Run() {
|
||
|
|
log.Info("App started")
|
||
|
|
}
|