configuration

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// TestEnvironment contains the environment specific fields for the test environment.
	TestEnvironment = NewEnvironment("https://appapi2.test.bankid.com/rp/v5.1", testCertificate)
	// ProductionEnvironment contains the environment specific fields for the production environment.
	ProductionEnvironment = NewEnvironment("https://appapi2.bankid.com/rp/v5.1", prodCertificate)
)

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Environment *Environment
	Pkcs12      *Pkcs12
}

Configuration contains the configuration specific fields.

func New

func New(environment *Environment, pkcs12 *Pkcs12, options ...Option) *Configuration

New creates a new configuration.

type Environment

type Environment struct {
	BaseURL     string
	Certificate string
}

Environment contains the environment specific fields.

func NewEnvironment

func NewEnvironment(baseURL string, certificate string) *Environment

NewEnvironment creates a new environment.

type Option

type Option func(*Configuration)

Option definition.

type Pkcs12

type Pkcs12 struct {
	Content  []byte
	Password string
}

Pkcs12 contains the PKCS12 specific fields.

Jump to

Keyboard shortcuts

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