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

17 lines
340 B
Go

package system
import (
"kra/internal/config"
"gorm.io/gorm"
)
// Provider exposes the shared data infrastructure needed by system
// repositories without coupling this module to the parent data package.
type Provider interface {
DB() *gorm.DB
Database(name string) (*gorm.DB, error)
DatabaseReady() bool
Runtime() *config.Store
}