Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetV1CurrentUserOK
- func (o *GetV1CurrentUserOK) Error() string
- func (o *GetV1CurrentUserOK) GetPayload() *models.AuthorEntity
- func (o *GetV1CurrentUserOK) IsClientError() bool
- func (o *GetV1CurrentUserOK) IsCode(code int) bool
- func (o *GetV1CurrentUserOK) IsRedirect() bool
- func (o *GetV1CurrentUserOK) IsServerError() bool
- func (o *GetV1CurrentUserOK) IsSuccess() bool
- func (o *GetV1CurrentUserOK) String() string
- type GetV1CurrentUserParams
- func NewGetV1CurrentUserParams() *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithContext(ctx context.Context) *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithHTTPClient(client *http.Client) *GetV1CurrentUserParams
- func NewGetV1CurrentUserParamsWithTimeout(timeout time.Duration) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) SetContext(ctx context.Context)
- func (o *GetV1CurrentUserParams) SetDefaults()
- func (o *GetV1CurrentUserParams) SetHTTPClient(client *http.Client)
- func (o *GetV1CurrentUserParams) SetTimeout(timeout time.Duration)
- func (o *GetV1CurrentUserParams) WithContext(ctx context.Context) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithDefaults() *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithHTTPClient(client *http.Client) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WithTimeout(timeout time.Duration) *GetV1CurrentUserParams
- func (o *GetV1CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetV1CurrentUserReader
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 current user API
func (*Client) GetV1CurrentUser ¶
func (a *Client) GetV1CurrentUser(params *GetV1CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CurrentUserOK, error)
GetV1CurrentUser Retrieve the current 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 { GetV1CurrentUser(params *GetV1CurrentUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CurrentUserOK, 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 current user API client.
type GetV1CurrentUserOK ¶
type GetV1CurrentUserOK struct {
Payload *models.AuthorEntity
}
GetV1CurrentUserOK describes a response with status code 200, with default header values.
Retrieve the current user
func NewGetV1CurrentUserOK ¶
func NewGetV1CurrentUserOK() *GetV1CurrentUserOK
NewGetV1CurrentUserOK creates a GetV1CurrentUserOK with default headers values
func (*GetV1CurrentUserOK) Error ¶
func (o *GetV1CurrentUserOK) Error() string
func (*GetV1CurrentUserOK) GetPayload ¶
func (o *GetV1CurrentUserOK) GetPayload() *models.AuthorEntity
func (*GetV1CurrentUserOK) IsClientError ¶
func (o *GetV1CurrentUserOK) IsClientError() bool
IsClientError returns true when this get v1 current user o k response has a 4xx status code
func (*GetV1CurrentUserOK) IsCode ¶
func (o *GetV1CurrentUserOK) IsCode(code int) bool
IsCode returns true when this get v1 current user o k response a status code equal to that given
func (*GetV1CurrentUserOK) IsRedirect ¶
func (o *GetV1CurrentUserOK) IsRedirect() bool
IsRedirect returns true when this get v1 current user o k response has a 3xx status code
func (*GetV1CurrentUserOK) IsServerError ¶
func (o *GetV1CurrentUserOK) IsServerError() bool
IsServerError returns true when this get v1 current user o k response has a 5xx status code
func (*GetV1CurrentUserOK) IsSuccess ¶
func (o *GetV1CurrentUserOK) IsSuccess() bool
IsSuccess returns true when this get v1 current user o k response has a 2xx status code
func (*GetV1CurrentUserOK) String ¶
func (o *GetV1CurrentUserOK) String() string
type GetV1CurrentUserParams ¶
type GetV1CurrentUserParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetV1CurrentUserParams contains all the parameters to send to the API endpoint
for the get v1 current user operation. Typically these are written to a http.Request.
func NewGetV1CurrentUserParams ¶
func NewGetV1CurrentUserParams() *GetV1CurrentUserParams
NewGetV1CurrentUserParams creates a new GetV1CurrentUserParams 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 NewGetV1CurrentUserParamsWithContext ¶
func NewGetV1CurrentUserParamsWithContext(ctx context.Context) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithContext creates a new GetV1CurrentUserParams object with the ability to set a context for a request.
func NewGetV1CurrentUserParamsWithHTTPClient ¶
func NewGetV1CurrentUserParamsWithHTTPClient(client *http.Client) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithHTTPClient creates a new GetV1CurrentUserParams object with the ability to set a custom HTTPClient for a request.
func NewGetV1CurrentUserParamsWithTimeout ¶
func NewGetV1CurrentUserParamsWithTimeout(timeout time.Duration) *GetV1CurrentUserParams
NewGetV1CurrentUserParamsWithTimeout creates a new GetV1CurrentUserParams object with the ability to set a timeout on a request.
func (*GetV1CurrentUserParams) SetContext ¶
func (o *GetV1CurrentUserParams) SetContext(ctx context.Context)
SetContext adds the context to the get v1 current user params
func (*GetV1CurrentUserParams) SetDefaults ¶
func (o *GetV1CurrentUserParams) SetDefaults()
SetDefaults hydrates default values in the get v1 current user params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1CurrentUserParams) SetHTTPClient ¶
func (o *GetV1CurrentUserParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get v1 current user params
func (*GetV1CurrentUserParams) SetTimeout ¶
func (o *GetV1CurrentUserParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get v1 current user params
func (*GetV1CurrentUserParams) WithContext ¶
func (o *GetV1CurrentUserParams) WithContext(ctx context.Context) *GetV1CurrentUserParams
WithContext adds the context to the get v1 current user params
func (*GetV1CurrentUserParams) WithDefaults ¶
func (o *GetV1CurrentUserParams) WithDefaults() *GetV1CurrentUserParams
WithDefaults hydrates default values in the get v1 current user params (not the query body).
All values with no default are reset to their zero value.
func (*GetV1CurrentUserParams) WithHTTPClient ¶
func (o *GetV1CurrentUserParams) WithHTTPClient(client *http.Client) *GetV1CurrentUserParams
WithHTTPClient adds the HTTPClient to the get v1 current user params
func (*GetV1CurrentUserParams) WithTimeout ¶
func (o *GetV1CurrentUserParams) WithTimeout(timeout time.Duration) *GetV1CurrentUserParams
WithTimeout adds the timeout to the get v1 current user params
func (*GetV1CurrentUserParams) WriteToRequest ¶
func (o *GetV1CurrentUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetV1CurrentUserReader ¶
type GetV1CurrentUserReader struct {
// contains filtered or unexported fields
}
GetV1CurrentUserReader is a Reader for the GetV1CurrentUser structure.
func (*GetV1CurrentUserReader) ReadResponse ¶
func (o *GetV1CurrentUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.