Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExternalPostgresqlService ¶
type ExternalPostgresqlService interface {
GetPgConnection(*models.ExternalPgRequest) (*models.ExternalPgResponse, error)
}
type ExternalPostgresqlServiceImpl ¶
type ExternalPostgresqlServiceImpl struct { DBUtils db.DB Req *models.ExternalPgRequest // contains filtered or unexported fields }
func (*ExternalPostgresqlServiceImpl) CheckExternalPgConnection ¶
func (p *ExternalPostgresqlServiceImpl) CheckExternalPgConnection(rootcert string) error
func (*ExternalPostgresqlServiceImpl) GetPgConnection ¶
func (pg *ExternalPostgresqlServiceImpl) GetPgConnection(req *models.ExternalPgRequest) (*models.ExternalPgResponse, error)
type MockExternalPostgresqlService ¶
type MockExternalPostgresqlService struct {
GetPgConnectionFunc func(*models.ExternalPgRequest) (*models.ExternalPgResponse, error)
}
func (*MockExternalPostgresqlService) GetPgConnection ¶
func (mss *MockExternalPostgresqlService) GetPgConnection(req *models.ExternalPgRequest) (*models.ExternalPgResponse, error)
Click to show internal directories.
Click to hide internal directories.