Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetMagicCallbackForbidden
- func (o *GetMagicCallbackForbidden) Code() int
- func (o *GetMagicCallbackForbidden) Error() string
- func (o *GetMagicCallbackForbidden) GetPayload() string
- func (o *GetMagicCallbackForbidden) IsClientError() bool
- func (o *GetMagicCallbackForbidden) IsCode(code int) bool
- func (o *GetMagicCallbackForbidden) IsRedirect() bool
- func (o *GetMagicCallbackForbidden) IsServerError() bool
- func (o *GetMagicCallbackForbidden) IsSuccess() bool
- func (o *GetMagicCallbackForbidden) String() string
- type GetMagicCallbackInternalServerError
- func (o *GetMagicCallbackInternalServerError) Code() int
- func (o *GetMagicCallbackInternalServerError) Error() string
- func (o *GetMagicCallbackInternalServerError) GetPayload() string
- func (o *GetMagicCallbackInternalServerError) IsClientError() bool
- func (o *GetMagicCallbackInternalServerError) IsCode(code int) bool
- func (o *GetMagicCallbackInternalServerError) IsRedirect() bool
- func (o *GetMagicCallbackInternalServerError) IsServerError() bool
- func (o *GetMagicCallbackInternalServerError) IsSuccess() bool
- func (o *GetMagicCallbackInternalServerError) String() string
- type GetMagicCallbackNotFound
- func (o *GetMagicCallbackNotFound) Code() int
- func (o *GetMagicCallbackNotFound) Error() string
- func (o *GetMagicCallbackNotFound) GetPayload() string
- func (o *GetMagicCallbackNotFound) IsClientError() bool
- func (o *GetMagicCallbackNotFound) IsCode(code int) bool
- func (o *GetMagicCallbackNotFound) IsRedirect() bool
- func (o *GetMagicCallbackNotFound) IsServerError() bool
- func (o *GetMagicCallbackNotFound) IsSuccess() bool
- func (o *GetMagicCallbackNotFound) String() string
- type GetMagicCallbackParams
- func NewGetMagicCallbackParams() *GetMagicCallbackParams
- func NewGetMagicCallbackParamsWithContext(ctx context.Context) *GetMagicCallbackParams
- func NewGetMagicCallbackParamsWithHTTPClient(client *http.Client) *GetMagicCallbackParams
- func NewGetMagicCallbackParamsWithTimeout(timeout time.Duration) *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) SetContext(ctx context.Context)
- func (o *GetMagicCallbackParams) SetDefaults()
- func (o *GetMagicCallbackParams) SetHTTPClient(client *http.Client)
- func (o *GetMagicCallbackParams) SetTimeout(timeout time.Duration)
- func (o *GetMagicCallbackParams) SetToken(token string)
- func (o *GetMagicCallbackParams) WithContext(ctx context.Context) *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) WithDefaults() *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) WithHTTPClient(client *http.Client) *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) WithTimeout(timeout time.Duration) *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) WithToken(token string) *GetMagicCallbackParams
- func (o *GetMagicCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMagicCallbackReader
- type GetMagicCallbackTemporaryRedirect
- func (o *GetMagicCallbackTemporaryRedirect) Code() int
- func (o *GetMagicCallbackTemporaryRedirect) Error() string
- func (o *GetMagicCallbackTemporaryRedirect) IsClientError() bool
- func (o *GetMagicCallbackTemporaryRedirect) IsCode(code int) bool
- func (o *GetMagicCallbackTemporaryRedirect) IsRedirect() bool
- func (o *GetMagicCallbackTemporaryRedirect) IsServerError() bool
- func (o *GetMagicCallbackTemporaryRedirect) IsSuccess() bool
- func (o *GetMagicCallbackTemporaryRedirect) String() string
- type GetMagicCallbackUnauthorized
- func (o *GetMagicCallbackUnauthorized) Code() int
- func (o *GetMagicCallbackUnauthorized) Error() string
- func (o *GetMagicCallbackUnauthorized) GetPayload() string
- func (o *GetMagicCallbackUnauthorized) IsClientError() bool
- func (o *GetMagicCallbackUnauthorized) IsCode(code int) bool
- func (o *GetMagicCallbackUnauthorized) IsRedirect() bool
- func (o *GetMagicCallbackUnauthorized) IsServerError() bool
- func (o *GetMagicCallbackUnauthorized) IsSuccess() bool
- func (o *GetMagicCallbackUnauthorized) String() string
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
}
Client for magic API
func (*Client) GetMagicCallback ¶
func (a *Client) GetMagicCallback(params *GetMagicCallbackParams, opts ...ClientOption) error
GetMagicCallback magics callback validates the magic link and logs in the user
MagicCallback validates the magic link and logs in the user
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetMagicCallback(params *GetMagicCallbackParams, opts ...ClientOption) error SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new magic API client.
type GetMagicCallbackForbidden ¶
type GetMagicCallbackForbidden struct {
Payload string
}
GetMagicCallbackForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetMagicCallbackForbidden ¶
func NewGetMagicCallbackForbidden() *GetMagicCallbackForbidden
NewGetMagicCallbackForbidden creates a GetMagicCallbackForbidden with default headers values
func (*GetMagicCallbackForbidden) Code ¶
func (o *GetMagicCallbackForbidden) Code() int
Code gets the status code for the get magic callback forbidden response
func (*GetMagicCallbackForbidden) Error ¶
func (o *GetMagicCallbackForbidden) Error() string
func (*GetMagicCallbackForbidden) GetPayload ¶
func (o *GetMagicCallbackForbidden) GetPayload() string
func (*GetMagicCallbackForbidden) IsClientError ¶
func (o *GetMagicCallbackForbidden) IsClientError() bool
IsClientError returns true when this get magic callback forbidden response has a 4xx status code
func (*GetMagicCallbackForbidden) IsCode ¶
func (o *GetMagicCallbackForbidden) IsCode(code int) bool
IsCode returns true when this get magic callback forbidden response a status code equal to that given
func (*GetMagicCallbackForbidden) IsRedirect ¶
func (o *GetMagicCallbackForbidden) IsRedirect() bool
IsRedirect returns true when this get magic callback forbidden response has a 3xx status code
func (*GetMagicCallbackForbidden) IsServerError ¶
func (o *GetMagicCallbackForbidden) IsServerError() bool
IsServerError returns true when this get magic callback forbidden response has a 5xx status code
func (*GetMagicCallbackForbidden) IsSuccess ¶
func (o *GetMagicCallbackForbidden) IsSuccess() bool
IsSuccess returns true when this get magic callback forbidden response has a 2xx status code
func (*GetMagicCallbackForbidden) String ¶
func (o *GetMagicCallbackForbidden) String() string
type GetMagicCallbackInternalServerError ¶
type GetMagicCallbackInternalServerError struct {
Payload string
}
GetMagicCallbackInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewGetMagicCallbackInternalServerError ¶
func NewGetMagicCallbackInternalServerError() *GetMagicCallbackInternalServerError
NewGetMagicCallbackInternalServerError creates a GetMagicCallbackInternalServerError with default headers values
func (*GetMagicCallbackInternalServerError) Code ¶
func (o *GetMagicCallbackInternalServerError) Code() int
Code gets the status code for the get magic callback internal server error response
func (*GetMagicCallbackInternalServerError) Error ¶
func (o *GetMagicCallbackInternalServerError) Error() string
func (*GetMagicCallbackInternalServerError) GetPayload ¶
func (o *GetMagicCallbackInternalServerError) GetPayload() string
func (*GetMagicCallbackInternalServerError) IsClientError ¶
func (o *GetMagicCallbackInternalServerError) IsClientError() bool
IsClientError returns true when this get magic callback internal server error response has a 4xx status code
func (*GetMagicCallbackInternalServerError) IsCode ¶
func (o *GetMagicCallbackInternalServerError) IsCode(code int) bool
IsCode returns true when this get magic callback internal server error response a status code equal to that given
func (*GetMagicCallbackInternalServerError) IsRedirect ¶
func (o *GetMagicCallbackInternalServerError) IsRedirect() bool
IsRedirect returns true when this get magic callback internal server error response has a 3xx status code
func (*GetMagicCallbackInternalServerError) IsServerError ¶
func (o *GetMagicCallbackInternalServerError) IsServerError() bool
IsServerError returns true when this get magic callback internal server error response has a 5xx status code
func (*GetMagicCallbackInternalServerError) IsSuccess ¶
func (o *GetMagicCallbackInternalServerError) IsSuccess() bool
IsSuccess returns true when this get magic callback internal server error response has a 2xx status code
func (*GetMagicCallbackInternalServerError) String ¶
func (o *GetMagicCallbackInternalServerError) String() string
type GetMagicCallbackNotFound ¶
type GetMagicCallbackNotFound struct {
Payload string
}
GetMagicCallbackNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetMagicCallbackNotFound ¶
func NewGetMagicCallbackNotFound() *GetMagicCallbackNotFound
NewGetMagicCallbackNotFound creates a GetMagicCallbackNotFound with default headers values
func (*GetMagicCallbackNotFound) Code ¶
func (o *GetMagicCallbackNotFound) Code() int
Code gets the status code for the get magic callback not found response
func (*GetMagicCallbackNotFound) Error ¶
func (o *GetMagicCallbackNotFound) Error() string
func (*GetMagicCallbackNotFound) GetPayload ¶
func (o *GetMagicCallbackNotFound) GetPayload() string
func (*GetMagicCallbackNotFound) IsClientError ¶
func (o *GetMagicCallbackNotFound) IsClientError() bool
IsClientError returns true when this get magic callback not found response has a 4xx status code
func (*GetMagicCallbackNotFound) IsCode ¶
func (o *GetMagicCallbackNotFound) IsCode(code int) bool
IsCode returns true when this get magic callback not found response a status code equal to that given
func (*GetMagicCallbackNotFound) IsRedirect ¶
func (o *GetMagicCallbackNotFound) IsRedirect() bool
IsRedirect returns true when this get magic callback not found response has a 3xx status code
func (*GetMagicCallbackNotFound) IsServerError ¶
func (o *GetMagicCallbackNotFound) IsServerError() bool
IsServerError returns true when this get magic callback not found response has a 5xx status code
func (*GetMagicCallbackNotFound) IsSuccess ¶
func (o *GetMagicCallbackNotFound) IsSuccess() bool
IsSuccess returns true when this get magic callback not found response has a 2xx status code
func (*GetMagicCallbackNotFound) String ¶
func (o *GetMagicCallbackNotFound) String() string
type GetMagicCallbackParams ¶
type GetMagicCallbackParams struct { /* Token. magic link token */ Token string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMagicCallbackParams contains all the parameters to send to the API endpoint
for the get magic callback operation. Typically these are written to a http.Request.
func NewGetMagicCallbackParams ¶
func NewGetMagicCallbackParams() *GetMagicCallbackParams
NewGetMagicCallbackParams creates a new GetMagicCallbackParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMagicCallbackParamsWithContext ¶
func NewGetMagicCallbackParamsWithContext(ctx context.Context) *GetMagicCallbackParams
NewGetMagicCallbackParamsWithContext creates a new GetMagicCallbackParams object with the ability to set a context for a request.
func NewGetMagicCallbackParamsWithHTTPClient ¶
func NewGetMagicCallbackParamsWithHTTPClient(client *http.Client) *GetMagicCallbackParams
NewGetMagicCallbackParamsWithHTTPClient creates a new GetMagicCallbackParams object with the ability to set a custom HTTPClient for a request.
func NewGetMagicCallbackParamsWithTimeout ¶
func NewGetMagicCallbackParamsWithTimeout(timeout time.Duration) *GetMagicCallbackParams
NewGetMagicCallbackParamsWithTimeout creates a new GetMagicCallbackParams object with the ability to set a timeout on a request.
func (*GetMagicCallbackParams) SetContext ¶
func (o *GetMagicCallbackParams) SetContext(ctx context.Context)
SetContext adds the context to the get magic callback params
func (*GetMagicCallbackParams) SetDefaults ¶
func (o *GetMagicCallbackParams) SetDefaults()
SetDefaults hydrates default values in the get magic callback params (not the query body).
All values with no default are reset to their zero value.
func (*GetMagicCallbackParams) SetHTTPClient ¶
func (o *GetMagicCallbackParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get magic callback params
func (*GetMagicCallbackParams) SetTimeout ¶
func (o *GetMagicCallbackParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get magic callback params
func (*GetMagicCallbackParams) SetToken ¶
func (o *GetMagicCallbackParams) SetToken(token string)
SetToken adds the token to the get magic callback params
func (*GetMagicCallbackParams) WithContext ¶
func (o *GetMagicCallbackParams) WithContext(ctx context.Context) *GetMagicCallbackParams
WithContext adds the context to the get magic callback params
func (*GetMagicCallbackParams) WithDefaults ¶
func (o *GetMagicCallbackParams) WithDefaults() *GetMagicCallbackParams
WithDefaults hydrates default values in the get magic callback params (not the query body).
All values with no default are reset to their zero value.
func (*GetMagicCallbackParams) WithHTTPClient ¶
func (o *GetMagicCallbackParams) WithHTTPClient(client *http.Client) *GetMagicCallbackParams
WithHTTPClient adds the HTTPClient to the get magic callback params
func (*GetMagicCallbackParams) WithTimeout ¶
func (o *GetMagicCallbackParams) WithTimeout(timeout time.Duration) *GetMagicCallbackParams
WithTimeout adds the timeout to the get magic callback params
func (*GetMagicCallbackParams) WithToken ¶
func (o *GetMagicCallbackParams) WithToken(token string) *GetMagicCallbackParams
WithToken adds the token to the get magic callback params
func (*GetMagicCallbackParams) WriteToRequest ¶
func (o *GetMagicCallbackParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMagicCallbackReader ¶
type GetMagicCallbackReader struct {
// contains filtered or unexported fields
}
GetMagicCallbackReader is a Reader for the GetMagicCallback structure.
func (*GetMagicCallbackReader) ReadResponse ¶
func (o *GetMagicCallbackReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMagicCallbackTemporaryRedirect ¶
type GetMagicCallbackTemporaryRedirect struct { /* Redirects to Next URL */ Location string }
GetMagicCallbackTemporaryRedirect describes a response with status code 307, with default header values.
Temporary Redirect
func NewGetMagicCallbackTemporaryRedirect ¶
func NewGetMagicCallbackTemporaryRedirect() *GetMagicCallbackTemporaryRedirect
NewGetMagicCallbackTemporaryRedirect creates a GetMagicCallbackTemporaryRedirect with default headers values
func (*GetMagicCallbackTemporaryRedirect) Code ¶
func (o *GetMagicCallbackTemporaryRedirect) Code() int
Code gets the status code for the get magic callback temporary redirect response
func (*GetMagicCallbackTemporaryRedirect) Error ¶
func (o *GetMagicCallbackTemporaryRedirect) Error() string
func (*GetMagicCallbackTemporaryRedirect) IsClientError ¶
func (o *GetMagicCallbackTemporaryRedirect) IsClientError() bool
IsClientError returns true when this get magic callback temporary redirect response has a 4xx status code
func (*GetMagicCallbackTemporaryRedirect) IsCode ¶
func (o *GetMagicCallbackTemporaryRedirect) IsCode(code int) bool
IsCode returns true when this get magic callback temporary redirect response a status code equal to that given
func (*GetMagicCallbackTemporaryRedirect) IsRedirect ¶
func (o *GetMagicCallbackTemporaryRedirect) IsRedirect() bool
IsRedirect returns true when this get magic callback temporary redirect response has a 3xx status code
func (*GetMagicCallbackTemporaryRedirect) IsServerError ¶
func (o *GetMagicCallbackTemporaryRedirect) IsServerError() bool
IsServerError returns true when this get magic callback temporary redirect response has a 5xx status code
func (*GetMagicCallbackTemporaryRedirect) IsSuccess ¶
func (o *GetMagicCallbackTemporaryRedirect) IsSuccess() bool
IsSuccess returns true when this get magic callback temporary redirect response has a 2xx status code
func (*GetMagicCallbackTemporaryRedirect) String ¶
func (o *GetMagicCallbackTemporaryRedirect) String() string
type GetMagicCallbackUnauthorized ¶
type GetMagicCallbackUnauthorized struct {
}GetMagicCallbackUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetMagicCallbackUnauthorized ¶
func NewGetMagicCallbackUnauthorized() *GetMagicCallbackUnauthorized
NewGetMagicCallbackUnauthorized creates a GetMagicCallbackUnauthorized with default headers values
func (*GetMagicCallbackUnauthorized) Code ¶
func (o *GetMagicCallbackUnauthorized) Code() int
Code gets the status code for the get magic callback unauthorized response
func (*GetMagicCallbackUnauthorized) Error ¶
func (o *GetMagicCallbackUnauthorized) Error() string
func (*GetMagicCallbackUnauthorized) GetPayload ¶
func (o *GetMagicCallbackUnauthorized) GetPayload() string
func (*GetMagicCallbackUnauthorized) IsClientError ¶
func (o *GetMagicCallbackUnauthorized) IsClientError() bool
IsClientError returns true when this get magic callback unauthorized response has a 4xx status code
func (*GetMagicCallbackUnauthorized) IsCode ¶
func (o *GetMagicCallbackUnauthorized) IsCode(code int) bool
IsCode returns true when this get magic callback unauthorized response a status code equal to that given
func (*GetMagicCallbackUnauthorized) IsRedirect ¶
func (o *GetMagicCallbackUnauthorized) IsRedirect() bool
IsRedirect returns true when this get magic callback unauthorized response has a 3xx status code
func (*GetMagicCallbackUnauthorized) IsServerError ¶
func (o *GetMagicCallbackUnauthorized) IsServerError() bool
IsServerError returns true when this get magic callback unauthorized response has a 5xx status code
func (*GetMagicCallbackUnauthorized) IsSuccess ¶
func (o *GetMagicCallbackUnauthorized) IsSuccess() bool
IsSuccess returns true when this get magic callback unauthorized response has a 2xx status code
func (*GetMagicCallbackUnauthorized) String ¶
func (o *GetMagicCallbackUnauthorized) String() string