configuration

package
v0.0.0-...-1f8cd32 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: BSD-3-Clause, MIT Imports: 4 Imported by: 1

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

Jump to

Keyboard shortcuts

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