kra-new/internal/data/integration/provider.go

17 lines
365 B
Go

package integration
import (
"gorm.io/gorm"
"kra/internal/integration/runtimeconfig"
"github.com/google/wire"
)
// Provider is the minimal database/runtime seam for integration configuration.
type Provider interface {
DB() *gorm.DB
IntegrationRuntime() *runtimeconfig.Store
}
var ProviderSet = wire.NewSet(NewIntegrationConfigRepo, NewPaymentConfigReader)