Documentation
¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type HTTPClient
- type Prove
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
- func WithSecurity(security shared.Security) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerList = []string{
"https://api.staging.payfone.com",
"https://api.payfone.com",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type Prove ¶
type Prove struct { // Operations or actions related to identity Identity *identity // Operations or actions related to retrieving an Instant Link. InstantLink *instantLink // Operations or actions related to a mobile authentication. MobileAuth *mobileAuth // Operations or actions related to identity PreFill *preFill // Operations or actions related to Trust score Trust *trust // contains filtered or unexported fields }
type SDKOption ¶
type SDKOption func(*Prove)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶
WithSecurity configures the SDK to use the provided security details
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
Source Files
¶
Click to show internal directories.
Click to hide internal directories.