Files
pgbackweb/internal/service/executions/executions.go
Luis Eduardo Jeréz Girón c9ea76be56 Add webhooks mechanism
2024-08-18 23:02:25 -06:00

28 lines
686 B
Go

package executions
import (
"github.com/eduardolat/pgbackweb/internal/config"
"github.com/eduardolat/pgbackweb/internal/database/dbgen"
"github.com/eduardolat/pgbackweb/internal/integration"
"github.com/eduardolat/pgbackweb/internal/service/webhooks"
)
type Service struct {
env *config.Env
dbgen *dbgen.Queries
ints *integration.Integration
webhooksService *webhooks.Service
}
func New(
env *config.Env, dbgen *dbgen.Queries, ints *integration.Integration,
webhooksService *webhooks.Service,
) *Service {
return &Service{
env: env,
dbgen: dbgen,
ints: ints,
webhooksService: webhooksService,
}
}