initial
This commit is contained in:
commit
25439eab5b
10 changed files with 185 additions and 0 deletions
24
internal/app/handler.go
Normal file
24
internal/app/handler.go
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
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")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue