Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ConfigAPIAddress = ffc("config.api.address", "Listener address for API", i18n.StringType) ConfigAPIPort = ffc("config.api.port", "Listener port for API", i18n.IntType) ConfigAPIPublicURL = ffc("config.api.publicURL", "External address callers should access API over", i18n.StringType) ConfigAPIReadTimeout = ffc("config.api.readTimeout", "The maximum time to wait when reading from an HTTP connection", i18n.TimeDurationType) ConfigAPIWriteTimeout = ffc("config.api.writeTimeout", "The maximum time to wait when writing to a HTTP connection", i18n.TimeDurationType) ConfigAPIShutdownTimeout = ffc("config.api.shutdownTimeout", "The maximum amount of time to wait for any open HTTP requests to finish before shutting down the HTTP server", i18n.TimeDurationType) ConfigConfirmationsBlockCacheSize = ffc("config.confirmations.blockCacheSize", "The maximum number of block headers to keep in the cache", i18n.IntType) ConfigConfirmationsBlockPollingInterval = ffc("config.confirmations.blockPollingInterval", "How often to poll for new block headers", i18n.TimeDurationType) ConfigConfirmationsNotificationsQueueLength = ffc("config.confirmations.notificationQueueLength", "Internal queue length for notifying the confirmations manager of new transactions/events", i18n.IntType) ConfigConfirmationsRequired = ffc("config.confirmations.required", "Number of confirmations required to consider a transaction/event final", i18n.IntType) ConfigConfirmationsStaleReceiptTimeout = ffc("config.confirmations.staleReceiptTimeout", "Duration after which to force a receipt check for a pending transaction", i18n.TimeDurationType) ConfigConnectorURL = ffc("config.connector.url", "The URL of the blockchain connector", i18n.StringType) ConfigConnectorVariant = ffc("config.connector.variant", "The variant is the overall category of blockchain connector, defining things like how input/output definitions are passed", i18n.StringType) ConfigConnectorProxyURL = ffc("config.connector.proxy.url", "Optional HTTP proxy URL to use for the blockchain connector", i18n.StringType) ConfigFFCoreURL = ffc("config.ffcore.url", "The URL of the FireFly core admin API server to connect to", i18n.StringType) ConfigFFCoreProxyURL = ffc("config.ffcore.proxy.url", "Optional HTTP proxy URL to use for the FireFly core admin API server", i18n.StringType) ConfigManagerName = ffc("config.manager.name", "The name of this Transaction Manager, used in operation metadata to track which operations are to be updated", i18n.StringType) ConfigOperationsTypes = ffc("config.operations.types", "The operation types to query in FireFly core, that might have been submitted via this Transaction Manager", "string[]") ConfigOperationsFullScanMinimumDelay = ffc("config.operations.fullScan.minimumDelay", "The minimum delay between full scans of the FireFly core API, when reconnecting, or recovering from missed events / errors", i18n.TimeDurationType) ConfigOperationsFullScanPageSize = ffc("config.operations.fullScan.pageSize", "The page size to use when performing a full scan of the ForeFly core API on startup, or recovery", i18n.IntType) ConfigOperationsFullScanStartupMaxRetries = ffc("config.operations.fullScan.startupMaxRetries", "The page size to use when performing a full scan of the ForeFly core API on startup, or recovery", i18n.IntType) ConfigOperationsErrorHistoryCount = ffc("config.operations.errorHistoryCount", "The number of historical errors to retain in the operation", i18n.IntType) ConfigOperationsChangeListenerEnabled = ffc("config.operations.changeListener.enabled", "Whether to enable the change event listener to detect updates made to operations outside of the FFTM", i18n.BooleanType) ConfigPolicyEngineName = ffc("config.policyengine.name", "The name of the policy engine to use", i18n.StringType) ConfigLoopInterval = ffc("config.policyloop.interval", "Interval at which to invoke the policy engine to evaluate outstanding transactions", i18n.TimeDurationType) ConfigPolicyEngineSimpleFixedGasPrice = ffc("config.policyengine.simple.fixedGasPrice", "A fixed gasPrice value/structure to pass to the connector", "Raw JSON") ConfigPolicyEngineSimpleWarnInterval = ffc("config.policyengine.simple.warnInterval", "The time between warnings when a blockchain transaction has not been allocated a receipt", i18n.TimeDurationType) ConfigPolicyEngineSimpleGasOracleEnabled = ffc("config.policyengine.simple.gasOracle.mode", "The gas oracle mode", "connector | restapi | disabled") ConfigPolicyEngineSimpleGasOracleGoTemplate = ffc("config.policyengine.simple.gasOracle.template", "REST API Gas Oracle: A go template to execute against the result from the Gas Oracle, to create a JSON block that will be passed as the gas price to the connector", i18n.GoTemplateType) ConfigPolicyEngineSimpleGasOracleURL = ffc("config.policyengine.simple.gasOracle.url", "REST API Gas Oracle: The URL of a Gas Oracle REST API to call", i18n.StringType) ConfigPolicyEngineSimpleGasOracleProxyURL = ffc("config.policyengine.simple.gasOracle.proxy.url", "Optional HTTP proxy URL to use for the Gas Oracle REST API", i18n.StringType) ConfigPolicyEngineSimpleGasOracleMethod = ffc("config.policyengine.simple.gasOracle.method", "The HTTP Method to use when invoking the Gas Oracle REST API", i18n.StringType) ConfigPolicyEngineSimpleGasOracleQueryInterval = ffc("config.policyengine.simple.gasOracle.queryInterval", "The minimum interval between queries to the Gas Oracle", i18n.TimeDurationType) )
View Source
var ( MsgInvalidOutputType = ffe("FF21010", "Invalid output type: %s") MsgConnectorError = ffe("FF21012", "Connector failed request. requestId=%s reason=%s error: %s") MsgConnectorInvalidConentType = ffe("FF21013", "Connector failed request. requestId=%s invalid response content type: %s") MsgCacheInitFail = ffe("FF21015", "Failed to initialize cache") MsgInvalidConfirmationRequest = ffe("FF21016", "Invalid confirmation request %+v") MsgCoreError = ffe("FF21017", "Error from core status=%d: %s") MsgConfigParamNotSet = ffe("FF21018", "Configuration parameter '%s' must be set") MsgPolicyEngineNotRegistered = ffe("FF21019", "No policy engine registered with name '%s'") MsgNoGasConfigSetForPolicyEngine = ffe("FF21020", "A fixed gas price must be set when not using a gas oracle") MsgErrorQueryingGasOracleAPI = ffe("FF21021", "Error from gas station API [%d]: %s") MsgErrorInvalidRequest = ffe("FF21022", "Invalid request") MsgUnsupportedRequestType = ffe("FF21023", "Unsupported request type: %s") MsgMissingGOTemplate = ffe("FF21024", "Missing template for processing response from Gas Oracle REST API") MsgBadGOTemplate = ffe("FF21025", "Invalid Go template: %s") MsgGasOracleResultError = ffe("FF21026", "Error processing result from gas station API via template") )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.