Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type DebugAPURLBadRequest
- func (o *DebugAPURLBadRequest) Code() int
- func (o *DebugAPURLBadRequest) Error() string
- func (o *DebugAPURLBadRequest) IsClientError() bool
- func (o *DebugAPURLBadRequest) IsCode(code int) bool
- func (o *DebugAPURLBadRequest) IsRedirect() bool
- func (o *DebugAPURLBadRequest) IsServerError() bool
- func (o *DebugAPURLBadRequest) IsSuccess() bool
- func (o *DebugAPURLBadRequest) String() string
- type DebugAPURLInternalServerError
- func (o *DebugAPURLInternalServerError) Code() int
- func (o *DebugAPURLInternalServerError) Error() string
- func (o *DebugAPURLInternalServerError) IsClientError() bool
- func (o *DebugAPURLInternalServerError) IsCode(code int) bool
- func (o *DebugAPURLInternalServerError) IsRedirect() bool
- func (o *DebugAPURLInternalServerError) IsServerError() bool
- func (o *DebugAPURLInternalServerError) IsSuccess() bool
- func (o *DebugAPURLInternalServerError) String() string
- type DebugAPURLNotAcceptable
- func (o *DebugAPURLNotAcceptable) Code() int
- func (o *DebugAPURLNotAcceptable) Error() string
- func (o *DebugAPURLNotAcceptable) IsClientError() bool
- func (o *DebugAPURLNotAcceptable) IsCode(code int) bool
- func (o *DebugAPURLNotAcceptable) IsRedirect() bool
- func (o *DebugAPURLNotAcceptable) IsServerError() bool
- func (o *DebugAPURLNotAcceptable) IsSuccess() bool
- func (o *DebugAPURLNotAcceptable) String() string
- type DebugAPURLNotFound
- func (o *DebugAPURLNotFound) Code() int
- func (o *DebugAPURLNotFound) Error() string
- func (o *DebugAPURLNotFound) IsClientError() bool
- func (o *DebugAPURLNotFound) IsCode(code int) bool
- func (o *DebugAPURLNotFound) IsRedirect() bool
- func (o *DebugAPURLNotFound) IsServerError() bool
- func (o *DebugAPURLNotFound) IsSuccess() bool
- func (o *DebugAPURLNotFound) String() string
- type DebugAPURLOK
- func (o *DebugAPURLOK) Code() int
- func (o *DebugAPURLOK) Error() string
- func (o *DebugAPURLOK) GetPayload() *models.DebugAPURLResponse
- func (o *DebugAPURLOK) IsClientError() bool
- func (o *DebugAPURLOK) IsCode(code int) bool
- func (o *DebugAPURLOK) IsRedirect() bool
- func (o *DebugAPURLOK) IsServerError() bool
- func (o *DebugAPURLOK) IsSuccess() bool
- func (o *DebugAPURLOK) String() string
- type DebugAPURLParams
- func (o *DebugAPURLParams) SetContext(ctx context.Context)
- func (o *DebugAPURLParams) SetDefaults()
- func (o *DebugAPURLParams) SetHTTPClient(client *http.Client)
- func (o *DebugAPURLParams) SetTimeout(timeout time.Duration)
- func (o *DebugAPURLParams) SetURL(url string)
- func (o *DebugAPURLParams) WithContext(ctx context.Context) *DebugAPURLParams
- func (o *DebugAPURLParams) WithDefaults() *DebugAPURLParams
- func (o *DebugAPURLParams) WithHTTPClient(client *http.Client) *DebugAPURLParams
- func (o *DebugAPURLParams) WithTimeout(timeout time.Duration) *DebugAPURLParams
- func (o *DebugAPURLParams) WithURL(url string) *DebugAPURLParams
- func (o *DebugAPURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DebugAPURLReader
- type DebugAPURLUnauthorized
- func (o *DebugAPURLUnauthorized) Code() int
- func (o *DebugAPURLUnauthorized) Error() string
- func (o *DebugAPURLUnauthorized) IsClientError() bool
- func (o *DebugAPURLUnauthorized) IsCode(code int) bool
- func (o *DebugAPURLUnauthorized) IsRedirect() bool
- func (o *DebugAPURLUnauthorized) IsServerError() bool
- func (o *DebugAPURLUnauthorized) IsSuccess() bool
- func (o *DebugAPURLUnauthorized) 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 debug API
func (*Client) DebugAPURL ¶
func (a *Client) DebugAPURL(params *DebugAPURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugAPURLOK, error)
DebugAPURL performs a g e t to the specified activity pub URL and return detailed debugging information
Only enabled / exposed if GoToSocial was built and is running with flag DEBUG=1.
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 { DebugAPURL(params *DebugAPURLParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DebugAPURLOK, 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 debug API client.
type DebugAPURLBadRequest ¶
type DebugAPURLBadRequest struct { }
DebugAPURLBadRequest describes a response with status code 400, with default header values.
bad request
func NewDebugAPURLBadRequest ¶
func NewDebugAPURLBadRequest() *DebugAPURLBadRequest
NewDebugAPURLBadRequest creates a DebugAPURLBadRequest with default headers values
func (*DebugAPURLBadRequest) Code ¶
func (o *DebugAPURLBadRequest) Code() int
Code gets the status code for the debug a p Url bad request response
func (*DebugAPURLBadRequest) Error ¶
func (o *DebugAPURLBadRequest) Error() string
func (*DebugAPURLBadRequest) IsClientError ¶
func (o *DebugAPURLBadRequest) IsClientError() bool
IsClientError returns true when this debug a p Url bad request response has a 4xx status code
func (*DebugAPURLBadRequest) IsCode ¶
func (o *DebugAPURLBadRequest) IsCode(code int) bool
IsCode returns true when this debug a p Url bad request response a status code equal to that given
func (*DebugAPURLBadRequest) IsRedirect ¶
func (o *DebugAPURLBadRequest) IsRedirect() bool
IsRedirect returns true when this debug a p Url bad request response has a 3xx status code
func (*DebugAPURLBadRequest) IsServerError ¶
func (o *DebugAPURLBadRequest) IsServerError() bool
IsServerError returns true when this debug a p Url bad request response has a 5xx status code
func (*DebugAPURLBadRequest) IsSuccess ¶
func (o *DebugAPURLBadRequest) IsSuccess() bool
IsSuccess returns true when this debug a p Url bad request response has a 2xx status code
func (*DebugAPURLBadRequest) String ¶
func (o *DebugAPURLBadRequest) String() string
type DebugAPURLInternalServerError ¶
type DebugAPURLInternalServerError struct { }
DebugAPURLInternalServerError describes a response with status code 500, with default header values.
internal server error
func NewDebugAPURLInternalServerError ¶
func NewDebugAPURLInternalServerError() *DebugAPURLInternalServerError
NewDebugAPURLInternalServerError creates a DebugAPURLInternalServerError with default headers values
func (*DebugAPURLInternalServerError) Code ¶
func (o *DebugAPURLInternalServerError) Code() int
Code gets the status code for the debug a p Url internal server error response
func (*DebugAPURLInternalServerError) Error ¶
func (o *DebugAPURLInternalServerError) Error() string
func (*DebugAPURLInternalServerError) IsClientError ¶
func (o *DebugAPURLInternalServerError) IsClientError() bool
IsClientError returns true when this debug a p Url internal server error response has a 4xx status code
func (*DebugAPURLInternalServerError) IsCode ¶
func (o *DebugAPURLInternalServerError) IsCode(code int) bool
IsCode returns true when this debug a p Url internal server error response a status code equal to that given
func (*DebugAPURLInternalServerError) IsRedirect ¶
func (o *DebugAPURLInternalServerError) IsRedirect() bool
IsRedirect returns true when this debug a p Url internal server error response has a 3xx status code
func (*DebugAPURLInternalServerError) IsServerError ¶
func (o *DebugAPURLInternalServerError) IsServerError() bool
IsServerError returns true when this debug a p Url internal server error response has a 5xx status code
func (*DebugAPURLInternalServerError) IsSuccess ¶
func (o *DebugAPURLInternalServerError) IsSuccess() bool
IsSuccess returns true when this debug a p Url internal server error response has a 2xx status code
func (*DebugAPURLInternalServerError) String ¶
func (o *DebugAPURLInternalServerError) String() string
type DebugAPURLNotAcceptable ¶
type DebugAPURLNotAcceptable struct { }
DebugAPURLNotAcceptable describes a response with status code 406, with default header values.
not acceptable
func NewDebugAPURLNotAcceptable ¶
func NewDebugAPURLNotAcceptable() *DebugAPURLNotAcceptable
NewDebugAPURLNotAcceptable creates a DebugAPURLNotAcceptable with default headers values
func (*DebugAPURLNotAcceptable) Code ¶
func (o *DebugAPURLNotAcceptable) Code() int
Code gets the status code for the debug a p Url not acceptable response
func (*DebugAPURLNotAcceptable) Error ¶
func (o *DebugAPURLNotAcceptable) Error() string
func (*DebugAPURLNotAcceptable) IsClientError ¶
func (o *DebugAPURLNotAcceptable) IsClientError() bool
IsClientError returns true when this debug a p Url not acceptable response has a 4xx status code
func (*DebugAPURLNotAcceptable) IsCode ¶
func (o *DebugAPURLNotAcceptable) IsCode(code int) bool
IsCode returns true when this debug a p Url not acceptable response a status code equal to that given
func (*DebugAPURLNotAcceptable) IsRedirect ¶
func (o *DebugAPURLNotAcceptable) IsRedirect() bool
IsRedirect returns true when this debug a p Url not acceptable response has a 3xx status code
func (*DebugAPURLNotAcceptable) IsServerError ¶
func (o *DebugAPURLNotAcceptable) IsServerError() bool
IsServerError returns true when this debug a p Url not acceptable response has a 5xx status code
func (*DebugAPURLNotAcceptable) IsSuccess ¶
func (o *DebugAPURLNotAcceptable) IsSuccess() bool
IsSuccess returns true when this debug a p Url not acceptable response has a 2xx status code
func (*DebugAPURLNotAcceptable) String ¶
func (o *DebugAPURLNotAcceptable) String() string
type DebugAPURLNotFound ¶
type DebugAPURLNotFound struct { }
DebugAPURLNotFound describes a response with status code 404, with default header values.
not found
func NewDebugAPURLNotFound ¶
func NewDebugAPURLNotFound() *DebugAPURLNotFound
NewDebugAPURLNotFound creates a DebugAPURLNotFound with default headers values
func (*DebugAPURLNotFound) Code ¶
func (o *DebugAPURLNotFound) Code() int
Code gets the status code for the debug a p Url not found response
func (*DebugAPURLNotFound) Error ¶
func (o *DebugAPURLNotFound) Error() string
func (*DebugAPURLNotFound) IsClientError ¶
func (o *DebugAPURLNotFound) IsClientError() bool
IsClientError returns true when this debug a p Url not found response has a 4xx status code
func (*DebugAPURLNotFound) IsCode ¶
func (o *DebugAPURLNotFound) IsCode(code int) bool
IsCode returns true when this debug a p Url not found response a status code equal to that given
func (*DebugAPURLNotFound) IsRedirect ¶
func (o *DebugAPURLNotFound) IsRedirect() bool
IsRedirect returns true when this debug a p Url not found response has a 3xx status code
func (*DebugAPURLNotFound) IsServerError ¶
func (o *DebugAPURLNotFound) IsServerError() bool
IsServerError returns true when this debug a p Url not found response has a 5xx status code
func (*DebugAPURLNotFound) IsSuccess ¶
func (o *DebugAPURLNotFound) IsSuccess() bool
IsSuccess returns true when this debug a p Url not found response has a 2xx status code
func (*DebugAPURLNotFound) String ¶
func (o *DebugAPURLNotFound) String() string
type DebugAPURLOK ¶
type DebugAPURLOK struct {
Payload *models.DebugAPURLResponse
}
DebugAPURLOK describes a response with status code 200, with default header values.
DebugAPURLOK debug a p Url o k
func NewDebugAPURLOK ¶
func NewDebugAPURLOK() *DebugAPURLOK
NewDebugAPURLOK creates a DebugAPURLOK with default headers values
func (*DebugAPURLOK) Code ¶
func (o *DebugAPURLOK) Code() int
Code gets the status code for the debug a p Url o k response
func (*DebugAPURLOK) Error ¶
func (o *DebugAPURLOK) Error() string
func (*DebugAPURLOK) GetPayload ¶
func (o *DebugAPURLOK) GetPayload() *models.DebugAPURLResponse
func (*DebugAPURLOK) IsClientError ¶
func (o *DebugAPURLOK) IsClientError() bool
IsClientError returns true when this debug a p Url o k response has a 4xx status code
func (*DebugAPURLOK) IsCode ¶
func (o *DebugAPURLOK) IsCode(code int) bool
IsCode returns true when this debug a p Url o k response a status code equal to that given
func (*DebugAPURLOK) IsRedirect ¶
func (o *DebugAPURLOK) IsRedirect() bool
IsRedirect returns true when this debug a p Url o k response has a 3xx status code
func (*DebugAPURLOK) IsServerError ¶
func (o *DebugAPURLOK) IsServerError() bool
IsServerError returns true when this debug a p Url o k response has a 5xx status code
func (*DebugAPURLOK) IsSuccess ¶
func (o *DebugAPURLOK) IsSuccess() bool
IsSuccess returns true when this debug a p Url o k response has a 2xx status code
func (*DebugAPURLOK) String ¶
func (o *DebugAPURLOK) String() string
type DebugAPURLParams ¶
type DebugAPURLParams struct { /* URL. The URL / ActivityPub ID to dereference. This should be a full URL, including protocol. Eg., `https://example.org/users/someone` */ URL string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DebugAPURLParams contains all the parameters to send to the API endpoint
for the debug a p Url operation. Typically these are written to a http.Request.
func NewDebugAPURLParams ¶
func NewDebugAPURLParams() *DebugAPURLParams
NewDebugAPURLParams creates a new DebugAPURLParams 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 NewDebugAPURLParamsWithContext ¶
func NewDebugAPURLParamsWithContext(ctx context.Context) *DebugAPURLParams
NewDebugAPURLParamsWithContext creates a new DebugAPURLParams object with the ability to set a context for a request.
func NewDebugAPURLParamsWithHTTPClient ¶
func NewDebugAPURLParamsWithHTTPClient(client *http.Client) *DebugAPURLParams
NewDebugAPURLParamsWithHTTPClient creates a new DebugAPURLParams object with the ability to set a custom HTTPClient for a request.
func NewDebugAPURLParamsWithTimeout ¶
func NewDebugAPURLParamsWithTimeout(timeout time.Duration) *DebugAPURLParams
NewDebugAPURLParamsWithTimeout creates a new DebugAPURLParams object with the ability to set a timeout on a request.
func (*DebugAPURLParams) SetContext ¶
func (o *DebugAPURLParams) SetContext(ctx context.Context)
SetContext adds the context to the debug a p Url params
func (*DebugAPURLParams) SetDefaults ¶
func (o *DebugAPURLParams) SetDefaults()
SetDefaults hydrates default values in the debug a p Url params (not the query body).
All values with no default are reset to their zero value.
func (*DebugAPURLParams) SetHTTPClient ¶
func (o *DebugAPURLParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the debug a p Url params
func (*DebugAPURLParams) SetTimeout ¶
func (o *DebugAPURLParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the debug a p Url params
func (*DebugAPURLParams) SetURL ¶
func (o *DebugAPURLParams) SetURL(url string)
SetURL adds the url to the debug a p Url params
func (*DebugAPURLParams) WithContext ¶
func (o *DebugAPURLParams) WithContext(ctx context.Context) *DebugAPURLParams
WithContext adds the context to the debug a p Url params
func (*DebugAPURLParams) WithDefaults ¶
func (o *DebugAPURLParams) WithDefaults() *DebugAPURLParams
WithDefaults hydrates default values in the debug a p Url params (not the query body).
All values with no default are reset to their zero value.
func (*DebugAPURLParams) WithHTTPClient ¶
func (o *DebugAPURLParams) WithHTTPClient(client *http.Client) *DebugAPURLParams
WithHTTPClient adds the HTTPClient to the debug a p Url params
func (*DebugAPURLParams) WithTimeout ¶
func (o *DebugAPURLParams) WithTimeout(timeout time.Duration) *DebugAPURLParams
WithTimeout adds the timeout to the debug a p Url params
func (*DebugAPURLParams) WithURL ¶
func (o *DebugAPURLParams) WithURL(url string) *DebugAPURLParams
WithURL adds the url to the debug a p Url params
func (*DebugAPURLParams) WriteToRequest ¶
func (o *DebugAPURLParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DebugAPURLReader ¶
type DebugAPURLReader struct {
// contains filtered or unexported fields
}
DebugAPURLReader is a Reader for the DebugAPURL structure.
func (*DebugAPURLReader) ReadResponse ¶
func (o *DebugAPURLReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DebugAPURLUnauthorized ¶
type DebugAPURLUnauthorized struct { }
DebugAPURLUnauthorized describes a response with status code 401, with default header values.
unauthorized
func NewDebugAPURLUnauthorized ¶
func NewDebugAPURLUnauthorized() *DebugAPURLUnauthorized
NewDebugAPURLUnauthorized creates a DebugAPURLUnauthorized with default headers values
func (*DebugAPURLUnauthorized) Code ¶
func (o *DebugAPURLUnauthorized) Code() int
Code gets the status code for the debug a p Url unauthorized response
func (*DebugAPURLUnauthorized) Error ¶
func (o *DebugAPURLUnauthorized) Error() string
func (*DebugAPURLUnauthorized) IsClientError ¶
func (o *DebugAPURLUnauthorized) IsClientError() bool
IsClientError returns true when this debug a p Url unauthorized response has a 4xx status code
func (*DebugAPURLUnauthorized) IsCode ¶
func (o *DebugAPURLUnauthorized) IsCode(code int) bool
IsCode returns true when this debug a p Url unauthorized response a status code equal to that given
func (*DebugAPURLUnauthorized) IsRedirect ¶
func (o *DebugAPURLUnauthorized) IsRedirect() bool
IsRedirect returns true when this debug a p Url unauthorized response has a 3xx status code
func (*DebugAPURLUnauthorized) IsServerError ¶
func (o *DebugAPURLUnauthorized) IsServerError() bool
IsServerError returns true when this debug a p Url unauthorized response has a 5xx status code
func (*DebugAPURLUnauthorized) IsSuccess ¶
func (o *DebugAPURLUnauthorized) IsSuccess() bool
IsSuccess returns true when this debug a p Url unauthorized response has a 2xx status code
func (*DebugAPURLUnauthorized) String ¶
func (o *DebugAPURLUnauthorized) String() string