Documentation
¶
Index ¶
Constants ¶
View Source
const ( SILENT model.LogLevel = "SILENT" DEBUG model.LogLevel = "DEBUG" INFO model.LogLevel = "INFO" WARN model.LogLevel = "WARN" ERROR model.LogLevel = "ERROR" FATAL model.LogLevel = "FATAL" )
Logging levels.
View Source
const ( LogFormatJson model.LogFormat = "json" LogFormatCons model.LogFormat = "%{color}%{time:2006-01-02 15:04:05 MST} [%{module}] %{shortfunc} -> %{level:.4s} %{color:reset} %{message}" )
Log formats.
View Source
const ( UseDefaultConfigEnv = "CBDC_E2E_TX_USE_DEFAULT_CONFIG" ConfigFileEnv = "CBDC_E2E_TX_CONFIG_FILE" )
ENV variables
View Source
const ApplicationJson = "application/json"
View Source
const ApplicationUrlEncoded = "application/x-www-form-urlencoded"
View Source
const DefaultLogFormat = LogFormatCons
DefaultLogFormat Used by the app in case no format is specified.
View Source
const DefaultLogLevel = DEBUG
DefaultLogLevel Used by the app in case no log level is specified.
View Source
const HeaderAuthorization = "Authorization"
View Source
const HeaderContentType = "Content-Type"
View Source
const IntermediaryRequestTimeout = 10 * time.Second
View Source
const PayerAccessTokenExpMin = 60 * time.Minute
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiRequestType ¶
type ApiRequestType int
const ( BalanceRequest ApiRequestType = iota WithdrawRequest PaymentInitiationRequest PaymentTransferRequest )
Click to show internal directories.
Click to hide internal directories.