Documentation ¶
Index ¶
- func GetTenant(tenantName string, client *gorm.DB) (tenant models.Tenant, err error)
- type DatabaseConnection
- func (dc DatabaseConnection) GetConfigurationDatabaseAggregator() *models.ConfigurationDatabaseAggregator
- func (dc DatabaseConnection) GetDatabaseClientByTenant(tenantName string) *gorm.DB
- func (dc DatabaseConnection) GetLogicalComponent() *models.LogicalComponent
- func (dc DatabaseConnection) GetPivot() *models.Pivot
- func (dc DatabaseConnection) GetTenantDatabaseClient() *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatabaseConnection ¶
type DatabaseConnection struct {
// contains filtered or unexported fields
}
func NewDatabaseConnection ¶
func NewDatabaseConnection(configurationDatabaseAggregator *models.ConfigurationDatabaseAggregator, pivot *models.Pivot, logicalComponent *models.LogicalComponent) *DatabaseConnection
func (DatabaseConnection) GetConfigurationDatabaseAggregator ¶
func (dc DatabaseConnection) GetConfigurationDatabaseAggregator() *models.ConfigurationDatabaseAggregator
func (DatabaseConnection) GetDatabaseClientByTenant ¶
func (dc DatabaseConnection) GetDatabaseClientByTenant(tenantName string) *gorm.DB
GetDatabaseClientByTenant : Cluster database client getter by tenant.
func (DatabaseConnection) GetLogicalComponent ¶
func (dc DatabaseConnection) GetLogicalComponent() *models.LogicalComponent
func (DatabaseConnection) GetPivot ¶
func (dc DatabaseConnection) GetPivot() *models.Pivot
func (DatabaseConnection) GetTenantDatabaseClient ¶
func (dc DatabaseConnection) GetTenantDatabaseClient() *gorm.DB
Click to show internal directories.
Click to hide internal directories.