constants

package
v0.0.0-...-399e6d5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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