package
1.18.1
Repository: https://github.com/chargehive/configuration.git
Documentation: pkg.go.dev

# Functions

GetHandlers returns connector handlers.
NewDefinition returns a new connector definition.
NewPoolDefinition returns a new pool definition.

# Constants

KindConnector is the identifier for a Connector config.
KindConnectorPool kind indicates that the configuration is a collection of selectable connectors.
ProcessingStateCoolDown allow existing auths to be captured and refunds.
ProcessingStateLive process all transactions.
ProcessingStateRefundOnly Only process refund transactions.
RestrictionFullCycle a full cycle pool will ensure every connector within the pool has been attempted, before retrying.
RestrictionLowestUsage the pool will prioritise the connector with the lowest amount of attempts across all charges.
RestrictionNoRepeat indicates the pool should not select the last processed connector on this charge.
RestrictionPriority loop through each connector in priority order, using the previous attempt as its calculation.
RestrictionUnrestricted no restrictions on selection, an empty string indicates this default value.

# Structs

Connector is a configuration file for a single payment processing entity.
Definition is the connector definition structure.
Pool is used to select a group of connectors and the order that they should be used in.
PoolDefinition defines the structure of a definition.
PoolItem is a single entry into a pool used to determine the connector that should be used.

# Type aliases

ProcessingState indicates how a connection should be used while processing.
Restriction is the method used to determine a connector selected from a pool.