Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decode ¶
func Decode(readCloser io.ReadCloser, target any) error
Decode decodes a json string into the target type.
func NewTLSClientConfig ¶
func NewTLSClientConfig(configuration *configuration.Configuration) (*tls.Config, error)
NewTLSClientConfig initiates a new tls.Config.
Types ¶
type Client ¶
type Client interface { // Call is responsible for making the HTTP call against BankID REST API Call(context context.Context, request *Request) (Response, error) }
Client is the interface implemented by types that can invoke the BankID REST API.
func NewClient ¶
func NewClient(configuration *configuration.Configuration, options ...Option) (Client, error)
NewClient returns a new instance of 'NewClient'.
type Option ¶
type Option func(*client)
Option definition.
func WithHTTPClient ¶
WithHTTPClient Function to create Option func to set net/http client.
type Payload ¶
type Payload any
Payload is the interface implemented by types that holds the fields to be delivered to the API.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.