Documentation ¶
Index ¶
Constants ¶
View Source
const PolicyPendingErrorCode = 202
View Source
const (
UserActionHeader = "x-dfns-useraction"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthTransport ¶
type AuthTransport struct {
*AuthTransportConfig
}
func NewAuthTransport ¶
func NewAuthTransport(config *AuthTransportConfig) *AuthTransport
type AuthTransportConfig ¶
type AuthTransportConfig struct { AppID string AuthToken *string BaseURL string Signer credentials.ICredentialSigner }
type DfnsError ¶
type DfnsError struct { HTTPStatus int `json:"httpStatus"` // HTTP status code Message string `json:"message"` // Error message Context map[string]interface{} `json:"context,omitempty"` // Additional context }
DfnsError represents an error that occurred during DFNS API requests.
func NewDfnsError ¶
type PolicyPendingError ¶
type PolicyPendingError struct {
DfnsError
}
PolicyPendingError represents an error indicating that the operation triggered a policy pending approval.
func NewPolicyPendingError ¶
func NewPolicyPendingError(context map[string]interface{}) *PolicyPendingError
NewPolicyPendingError creates a new instance of PolicyPendingError.
Click to show internal directories.
Click to hide internal directories.