http

package
v0.2300.8 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package http implements the HTTP IAS endpoint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg *Config) (api.Endpoint, error)

New returns a new IAS HTTP endpoint.

Types

type Config

type Config struct {
	// SubscriptionKey is the IAS API key used for client authentication.
	SubscriptionKey string

	// SPID is the service provider ID.
	SPID string

	// QuoteSignatureType is the IAS signature quote type.
	QuoteSignatureType ias.SignatureType

	// IsProduction specifies if the endpoint should connect to the
	// production endpoint.
	IsProduction bool

	// DebugIsMock is set if set to true will return mock AVR responses
	// and not actually contact IAS.
	DebugIsMock bool
}

Config is the IAS HTTP endpoint configuration.

Jump to

Keyboard shortcuts

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