mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
16 lines
343 B
Go
16 lines
343 B
Go
package database
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/database/interfaces"
|
|
)
|
|
|
|
var serviceInstance interfaces.DatabaseRegistryService
|
|
|
|
func SetDatabaseRegistryService(svc interfaces.DatabaseRegistryService) {
|
|
serviceInstance = svc
|
|
}
|
|
|
|
func GetDatabaseRegistryService() interfaces.DatabaseRegistryService {
|
|
return serviceInstance
|
|
}
|