Documentation ¶
Index ¶
- func GetAuthHeader(apiKey, secret string) bool
- func IsAuthorized(apiKey string, serviceName string) bool
- type CustomerSQLDAL
- func (dal *CustomerSQLDAL) AddClientCredentialsCustomer(ClientAPIKey string, secret string, customerID int, startDate time.Time, ...) (models.DBErrorTypes, string)
- func (dal *CustomerSQLDAL) GetClientCredentials(customerID int) (models.DBErrorTypes, []models.CustomerCredentials)
- func (dal *CustomerSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
- type CustomerTestDAL
- type ExperianSQLDAL
- func (expDal *ExperianSQLDAL) CreateExperianRequest(experianRequestID uint64, request string) (models.DBErrorTypes, string)
- func (expDal *ExperianSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
- func (expDal *ExperianSQLDAL) UpdateExperianResponse(experianRequestID uint64, response string) (models.DBErrorTypes, string)
- type ExperianTestDAL
- func (expDal *ExperianTestDAL) CreateExperianRequest(experianRequestID uint64, request string) (models.DBErrorTypes, string)
- func (expDal *ExperianTestDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
- func (expDal *ExperianTestDAL) UpdateExperianResponse(experianRequestID uint64, response string) (models.DBErrorTypes, string)
- type ICustomer
- type IDMatchSQLDAL
- func (idDal *IDMatchSQLDAL) CreateIDMatchRequest(IDMatchRequestID uint64, request string) (models.DBErrorTypes, string)
- func (idDal *IDMatchSQLDAL) SetDBVal(dbServer, dbUser, dbPassword, dbCatalogue string, dbPort int)
- func (idDal *IDMatchSQLDAL) UpdateIDMatchResponse(IDMatchRequestID uint64, response string) (models.DBErrorTypes, string)
- type IDMatchTestDAL
- type IExperian
- type IIDMatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthHeader ¶
GetAuthHeader ... Opens DB Connections and return a connection object
func IsAuthorized ¶
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