23 lines
286 B
Go
23 lines
286 B
Go
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,
|
|
}
|
|
}
|