dal

package
v0.0.0-...-647991b Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthHeader

func GetAuthHeader(apiKey, secret string) bool

GetAuthHeader ... Opens DB Connections and return a connection object

func IsAuthorized

func IsAuthorized(apiKey string, serviceName string) bool

GetExperianAuthorized ... GetExperianAuthorized Checks APIKEY and returns if the user is Authorized

Types

type CustomerSQLDAL

type CustomerSQLDAL struct {
	// contains filtered or unexported fields
}

CustomerSQLDAL ... CustomerSQLDAL

func (*CustomerSQLDAL) AddClientCredentialsCustomer

func (dal *CustomerSQLDAL) AddClientCredentialsCustomer(ClientAPIKey string, secret string, customerID int, startDate time.Time, endDate time.Time) (models.DBErrorTypes, string)

AddClientCredentialsCustomer ... Opens DB Connections and return a connection object

func (*CustomerSQLDAL) GetClientCredentials

func (dal *CustomerSQLDAL) GetClientCredentials(customerID int) (models.DBErrorTypes, []models.CustomerCredentials)

GetClientCredentials ... GetClientCredentials by Customer ID

func (*CustomerSQLDAL) SetDBVal

func (dal *CustomerSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

type CustomerTestDAL

type CustomerTestDAL struct {
	// contains filtered or unexported fields
}

CustomerTestDAL ... CustomerTestDAL

func (*CustomerTestDAL) SetDBVal

func (dal *CustomerTestDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

type ExperianSQLDAL

type ExperianSQLDAL struct {
	// contains filtered or unexported fields
}

ExperianSQLDAL ... ExperianSQLDAL - SQL Call for Experian

func (*ExperianSQLDAL) CreateExperianRequest

func (expDal *ExperianSQLDAL) CreateExperianRequest(experianRequestID uint64, request string) (models.DBErrorTypes, string)

CreateExperianRequest ... CreateExperianRequest

func (*ExperianSQLDAL) SetDBVal

func (expDal *ExperianSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

func (*ExperianSQLDAL) UpdateExperianResponse

func (expDal *ExperianSQLDAL) UpdateExperianResponse(experianRequestID uint64, response string) (models.DBErrorTypes, string)

UpdateExperianResponse ... UpdateExperianResponse

type ExperianTestDAL

type ExperianTestDAL struct {
	// contains filtered or unexported fields
}

ExperianTestDAL ... ExperianTestDAL - Mock Call for Experian

func (*ExperianTestDAL) CreateExperianRequest

func (expDal *ExperianTestDAL) CreateExperianRequest(experianRequestID uint64, request string) (models.DBErrorTypes, string)

CreateExperianRequest ... CreateExperianRequest

func (*ExperianTestDAL) SetDBVal

func (expDal *ExperianTestDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

func (*ExperianTestDAL) UpdateExperianResponse

func (expDal *ExperianTestDAL) UpdateExperianResponse(experianRequestID uint64, response string) (models.DBErrorTypes, string)

UpdateExperianResponse ... UpdateExperianResponse

type ICustomer

type ICustomer interface {
	AddClientCredentialsCustomer(ClientAPIKey string, secret string, customerID int, startDate time.Time, endDate time.Time) (models.DBErrorTypes, string)
	GetClientCredentials(customerID int) (models.DBErrorTypes, []models.CustomerCredentials)
	SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
}

ICustomer ... ICustomer

type IDMatchSQLDAL

type IDMatchSQLDAL struct {
	// contains filtered or unexported fields
}

IDMatchSQLDAL ... IDMatchSQLDAL - SQL Call for IDMatch

func (*IDMatchSQLDAL) CreateIDMatchRequest

func (idDal *IDMatchSQLDAL) CreateIDMatchRequest(IDMatchRequestID uint64, request string) (models.DBErrorTypes, string)

CreateIDMatchRequest ... CreateIDMatchRequest

func (*IDMatchSQLDAL) SetDBVal

func (idDal *IDMatchSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

func (*IDMatchSQLDAL) UpdateIDMatchResponse

func (idDal *IDMatchSQLDAL) UpdateIDMatchResponse(IDMatchRequestID uint64, response string) (models.DBErrorTypes, string)

UpdateIDMatchResponse ... UpdateIDMatchResponse

type IDMatchTestDAL

type IDMatchTestDAL struct {
	// contains filtered or unexported fields
}

IDMatchTestDAL ... IDMatchTestDAL - Mock Call for IDMatch

func (*IDMatchTestDAL) SetDBVal

func (idDal *IDMatchTestDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)

SetDBVal ... SetDBVal

type IExperian

type IExperian interface {
	SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
	CreateExperianRequest(experianRequestID uint64, request string) (models.DBErrorTypes, string)
	UpdateExperianResponse(experianRequestID uint64, response string) (models.DBErrorTypes, string)
}

IExperian ... IExperian

type IIDMatch

type IIDMatch interface {
	SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
	CreateIDMatchRequest(IDMatchRequestID uint64, request string) (models.DBErrorTypes, string)
	UpdateIDMatchResponse(IDMatchRequestID uint64, response string) (models.DBErrorTypes, string)
}

IIDMatch ... IIDMatch

Jump to

Keyboard shortcuts

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