Documentation
¶
Index ¶
Constants ¶
View Source
const ( HeaderUserAgent = "User-Agent" HeaderRealIP = "X-Real-Ip" HeaderForwardedFor = "X-Forwarded-For" HeaderForwardedHost = "X-Forwarded-Host" HeaderHost = "Host" DSL = "dsl" FileExtension = ".gold" HeaderID = "X-Request-Id" HeaderTraceparent = "Traceparent" IdempotencyKey = "X-Idempotency" IdempotencyTTL = "X-TTL" IdempotencyReplayed = "X-Idempotency-Replayed" Authorization = "Authorization" Basic = "Basic" BasicAuth = "Basic Auth" WWWAuthenticate = "WWW-Authenticate" )
View Source
const ( MetadataID = "metadata_id" MetadataTraceparent = "traceparent" MetadataTracestate = "tracestate" MetadataAuthorization = "authorization" )
View Source
const ( DefaultExternalAccountAliasPrefix = "@external/" ExternalAccountType = "external" DEBIT = "DEBIT" CREDIT = "CREDIT" ONHOLD = "ON_HOLD" RELEASE = "RELEASE" CREATED = "CREATED" APPROVED = "APPROVED" PENDING = "PENDING" CANCELED = "CANCELED" )
View Source
const LoggerDefaultSeparator = " | "
View Source
const (
// ObfuscatedValue is the default value used to replace sensitive fields
ObfuscatedValue = "********"
)
View Source
const TelemetrySDKName = "lib-commons/opentelemetry"
Variables ¶
View Source
var ( ErrInsufficientFunds = errors.New("0018") ErrAccountIneligibility = errors.New("0019") ErrAccountStatusTransactionRestriction = errors.New("0024") ErrAssetCodeNotFound = errors.New("0034") ErrTransactionValueMismatch = errors.New("0073") ErrTransactionAmbiguous = errors.New("0090") ErrOverFlowInt64 = errors.New("0097") ErrOnHoldExternalAccount = errors.New("0098") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.