dependency

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL