Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommunicatorConfiguration ¶
type CommunicatorConfiguration struct { // APIEndpoint represents the API endpoint of for the communicator // See https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/go/endpoints.html APIEndpoint url.URL // ConnectTimeout represents the connect timeout ConnectTimeout time.Duration // SocketTimeout represents the request timeout SocketTimeout time.Duration // IdleTimeout represents the idle connection timeout IdleTimeout time.Duration // KeepAliveTimeout represents the HTTP KeepAlive interval KeepAliveTimeout time.Duration // MaxConnections represents the maximum amount of concurrent pooled connections MaxConnections int // AuthorizationType represents authorizationType used to sign the requests AuthorizationType defaultimpl.AuthorizationType // APIKeyID represents an identifier for the secret API key APIKeyID string // SecretAPIKey represents a shared secret SecretAPIKey string // Proxy represents the URL for the connection proxy Proxy *url.URL // Integrator represents the integrator name Integrator string // ShoppingCartExtension represents the shopping cart extension used in the MetaData headers ShoppingCartExtension *metadata.ShoppingCartExtension }
CommunicatorConfiguration represents the configuration to be used by a Communicator
func DefaultConfiguration ¶
func DefaultConfiguration(apiKeyID, secretAPIKey, integrator string) CommunicatorConfiguration
DefaultConfiguration returns the default communicator configuration
Click to show internal directories.
Click to hide internal directories.