Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FulfillEvent ¶
func (c *Client) FulfillEvent(ctx context.Context, req FulfillEventRequest) *Error
func (*Client) FulfillVerifyProofEvent ¶
func (c *Client) FulfillVerifyProofEvent(ctx context.Context, req FulfillVerifyProofEventRequest) *Error
func (*Client) VerifyPassport ¶
func (c *Client) VerifyPassport(ctx context.Context, req VerifyPassportRequest) error
type ErrorCode ¶
type ErrorCode string
ErrorCode represents an error with a code indicating the unhappy flow that occurred
const ( CodeEventExpired ErrorCode = "event_expired" // event type is expired CodeEventDisabled ErrorCode = "event_disabled" // event type is disabled or not configured CodeEventNotFound ErrorCode = "event_not_found" // specific event not found for user CodeNullifierUnknown ErrorCode = "nullifier_unknown" // nullifier is unknown, while external_id was provided CodeInternalError ErrorCode = "internal_error" // other errors )
func (ErrorCode) JSONAPIError ¶
func (c ErrorCode) JSONAPIError() *jsonapi.ErrorObject
type FulfillEventRequest ¶
type VerifyPassportRequest ¶
Click to show internal directories.
Click to hide internal directories.