sandbox

package
v3.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// SDK ID. This can be found in the Yoti Hub after you have created and activated an application.
	SdkID string
	// Private Key associated for your application, can be downloaded from the Yoti Hub.
	Key *rsa.PrivateKey
	// Mockable HTTP Client Interface
	HTTPClient requests.HttpClient
	// contains filtered or unexported fields
}

Client is responsible for setting up test data in the sandbox instance.

func NewClient

func NewClient(sdkID string, key []byte) (*Client, error)

NewClient constructs a Client object

func (*Client) ConfigureApplicationResponse

func (client *Client) ConfigureApplicationResponse(responseConfig *request.ResponseConfig) error

ConfigureApplicationResponse configures the response for the application

func (*Client) ConfigureSessionResponse

func (client *Client) ConfigureSessionResponse(sessionID string, responseConfig *request.ResponseConfig) error

ConfigureSessionResponse configures the response for the session

func (*Client) OverrideAPIURL

func (client *Client) OverrideAPIURL(apiURL string)

OverrideAPIURL overrides the default API URL for this Yoti Client

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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