Documentation
¶
Overview ¶
Package dependency provides different manager that will be used to instantiate the different services and daos of the API. It's one way to inject the different dependencies into the different services/daos.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistenceManager ¶
type PersistenceManager interface {
GetDashboard() dashboard.DAO
GetDatasource() datasource.DAO
GetFolder() folder.DAO
GetGlobalDatasource() globaldatasource.DAO
GetGlobalVariable() globalvariable.DAO
GetHealth() health.DAO
GetPersesDAO() databaseModel.DAO
GetProject() project.DAO
GetVariable() variable.DAO
}
func NewPersistenceManager ¶
func NewPersistenceManager(conf config.Database) (PersistenceManager, error)
type ServiceManager ¶
type ServiceManager interface {
GetDashboard() dashboard.Service
GetDatasource() datasource.Service
GetFolder() folder.Service
GetGlobalDatasource() globaldatasource.Service
GetGlobalVariable() globalvariable.Service
GetHealth() health.Service
GetMigration() migrate.Migration
GetProject() project.Service
GetSchemas() schemas.Schemas
GetVariable() variable.Service
}
func NewServiceManager ¶
func NewServiceManager(dao PersistenceManager, conf config.Config) (ServiceManager, error)
Click to show internal directories.
Click to hide internal directories.