Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPrepareRequest = errors.New("invalid reuq")
Functions ¶
This section is empty.
Types ¶
type AuthKeyType ¶
type AuthKeyType string
AuthKeyType defines credential types
const ( KeyAccessKeyID AuthKeyType = "access_key_id" KeyAccessID AuthKeyType = "access_id" KeyAccessKey AuthKeyType = "access_key" KeySecret AuthKeyType = "secret" )
type CheckResponse ¶
type CheckResponse struct {
ExternalID string `json:"external_id"`
Score decimal.Decimal `json:"score"`
Status CheckStatus `json:"status"`
RiskLevel *CheckRiskLevel `json:"risk_level"`
HTTPStatus int `json:"http_status"`
Request json.RawMessage `json:"request"`
Response json.RawMessage `json:"response"`
}
type CheckRiskLevel ¶
type CheckRiskLevel string
const ( CheckRiskLevelLow CheckRiskLevel = "low" CheckRiskLevelMedium CheckRiskLevel = "medium" CheckRiskLevelHigh CheckRiskLevel = "high" CheckRiskLevelSevere CheckRiskLevel = "severe" CheckRiskLevelNone CheckRiskLevel = "none" CheckRiskLevelUndefined CheckRiskLevel = "undefined" )
type CheckStatus ¶
type CheckStatus string
const ( CheckStatusNew CheckStatus = "new" CheckStatusSuccess CheckStatus = "success" CheckStatusFailure CheckStatus = "failure" )
type Client ¶
type Client interface {
InitCheckTransaction(ctx context.Context, dto InitCheckDTO, auth RequestAuthorizer) (*CheckResponse, error)
FetchCheckStatus(ctx context.Context, checkID string, auth RequestAuthorizer) (*CheckResponse, error)
TestRequestWithAuth(ctx context.Context, auth RequestAuthorizer) error
}
type InitCheckDTO ¶
type ProviderSlug ¶
type ProviderSlug string
ProviderSlug defines AML provider identity
const ( ProviderSlugAMLBot ProviderSlug = "aml_bot" ProviderSlugBitOK ProviderSlug = "bitok" )
type RequestAuthorizer ¶
type RequestFailedError ¶
func (*RequestFailedError) Error ¶
func (re *RequestFailedError) Error() string
Click to show internal directories.
Click to hide internal directories.