externalpostgresqlservice

package
v0.0.0-...-d288915 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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 NewExternalPostgresqlService

func NewExternalPostgresqlService(db db.DB, fileutils fileutils.FileUtils, logger logger.Logger) *ExternalPostgresqlServiceImpl

func (*ExternalPostgresqlServiceImpl) CheckExternalPgConnection

func (p *ExternalPostgresqlServiceImpl) CheckExternalPgConnection(rootcert string) error

func (*ExternalPostgresqlServiceImpl) GetPgConnection

type MockExternalPostgresqlService

type MockExternalPostgresqlService struct {
	GetPgConnectionFunc func(*models.ExternalPgRequest) (*models.ExternalPgResponse, error)
}

func (*MockExternalPostgresqlService) GetPgConnection

Jump to

Keyboard shortcuts

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