constant

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: Apache-2.0 Imports: 1 Imported by: 1

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

type Order

type Order string
const (
	Asc  Order = "asc"
	Desc Order = "desc"
)

Order is a type that represents the ordering of a list.

Jump to

Keyboard shortcuts

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