Init: lab4 done
This commit is contained in:
22
handlers/handlers.go
Normal file
22
handlers/handlers.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"golang-lab4/workflows"
|
||||
|
||||
"github.com/uptrace/bun"
|
||||
)
|
||||
|
||||
type Handlers struct {
|
||||
db *bun.DB
|
||||
fetcher *workflows.Fetcher
|
||||
}
|
||||
|
||||
func NewHandlers(
|
||||
db *bun.DB,
|
||||
fetcher *workflows.Fetcher,
|
||||
) *Handlers {
|
||||
return &Handlers{
|
||||
db: db,
|
||||
fetcher: fetcher,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user