Documentation
¶
Index ¶
- type Client
- type GetMeBadRequest
- type GetMeEnhanceYourCalm
- type GetMeForbidden
- type GetMeInternalServerError
- type GetMeNotFound
- type GetMeOK
- type GetMeOKBody
- type GetMeParams
- func (o *GetMeParams) SetContext(ctx context.Context)
- func (o *GetMeParams) SetHTTPClient(client *http.Client)
- func (o *GetMeParams) SetTimeout(timeout time.Duration)
- func (o *GetMeParams) SetToken(token *string)
- func (o *GetMeParams) WithContext(ctx context.Context) *GetMeParams
- func (o *GetMeParams) WithHTTPClient(client *http.Client) *GetMeParams
- func (o *GetMeParams) WithTimeout(timeout time.Duration) *GetMeParams
- func (o *GetMeParams) WithToken(token *string) *GetMeParams
- func (o *GetMeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMeReader
- type GetMeUnauthorized
- type GetUserProfilePhotosBadRequest
- type GetUserProfilePhotosEnhanceYourCalm
- type GetUserProfilePhotosForbidden
- type GetUserProfilePhotosInternalServerError
- type GetUserProfilePhotosNotFound
- type GetUserProfilePhotosOK
- type GetUserProfilePhotosOKBody
- type GetUserProfilePhotosParams
- func NewGetUserProfilePhotosParams() *GetUserProfilePhotosParams
- func NewGetUserProfilePhotosParamsWithContext(ctx context.Context) *GetUserProfilePhotosParams
- func NewGetUserProfilePhotosParamsWithHTTPClient(client *http.Client) *GetUserProfilePhotosParams
- func NewGetUserProfilePhotosParamsWithTimeout(timeout time.Duration) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) SetContext(ctx context.Context)
- func (o *GetUserProfilePhotosParams) SetHTTPClient(client *http.Client)
- func (o *GetUserProfilePhotosParams) SetLimit(limit *int64)
- func (o *GetUserProfilePhotosParams) SetOffset(offset *int64)
- func (o *GetUserProfilePhotosParams) SetTimeout(timeout time.Duration)
- func (o *GetUserProfilePhotosParams) SetToken(token *string)
- func (o *GetUserProfilePhotosParams) SetUserID(userID int64)
- func (o *GetUserProfilePhotosParams) WithContext(ctx context.Context) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithHTTPClient(client *http.Client) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithLimit(limit *int64) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithOffset(offset *int64) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithTimeout(timeout time.Duration) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithToken(token *string) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WithUserID(userID int64) *GetUserProfilePhotosParams
- func (o *GetUserProfilePhotosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserProfilePhotosReader
- type GetUserProfilePhotosUnauthorized
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 users API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new users API client.
func (*Client) GetMe ¶
func (a *Client) GetMe(params *GetMeParams) (*GetMeOK, error)
GetMe get me API
func (*Client) GetUserProfilePhotos ¶
func (a *Client) GetUserProfilePhotos(params *GetUserProfilePhotosParams) (*GetUserProfilePhotosOK, error)
GetUserProfilePhotos get user profile photos API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetMeBadRequest ¶
GetMeBadRequest handles this case with default header values.
Bad Request
func NewGetMeBadRequest ¶
func NewGetMeBadRequest() *GetMeBadRequest
NewGetMeBadRequest creates a GetMeBadRequest with default headers values
func (*GetMeBadRequest) Error ¶
func (o *GetMeBadRequest) Error() string
type GetMeEnhanceYourCalm ¶
GetMeEnhanceYourCalm handles this case with default header values.
Flood
func NewGetMeEnhanceYourCalm ¶
func NewGetMeEnhanceYourCalm() *GetMeEnhanceYourCalm
NewGetMeEnhanceYourCalm creates a GetMeEnhanceYourCalm with default headers values
func (*GetMeEnhanceYourCalm) Error ¶
func (o *GetMeEnhanceYourCalm) Error() string
type GetMeForbidden ¶
GetMeForbidden handles this case with default header values.
Forbidden
func NewGetMeForbidden ¶
func NewGetMeForbidden() *GetMeForbidden
NewGetMeForbidden creates a GetMeForbidden with default headers values
func (*GetMeForbidden) Error ¶
func (o *GetMeForbidden) Error() string
type GetMeInternalServerError ¶
GetMeInternalServerError handles this case with default header values.
Internal
func NewGetMeInternalServerError ¶
func NewGetMeInternalServerError() *GetMeInternalServerError
NewGetMeInternalServerError creates a GetMeInternalServerError with default headers values
func (*GetMeInternalServerError) Error ¶
func (o *GetMeInternalServerError) Error() string
type GetMeNotFound ¶
GetMeNotFound handles this case with default header values.
Not Found
func NewGetMeNotFound ¶
func NewGetMeNotFound() *GetMeNotFound
NewGetMeNotFound creates a GetMeNotFound with default headers values
func (*GetMeNotFound) Error ¶
func (o *GetMeNotFound) Error() string
type GetMeOK ¶
type GetMeOK struct {
Payload GetMeOKBody
}
GetMeOK handles this case with default header values.
GetMeOK get me o k
func NewGetMeOK ¶
func NewGetMeOK() *GetMeOK
NewGetMeOK creates a GetMeOK with default headers values
type GetMeOKBody ¶
type GetMeOKBody struct { // description // Required: true Description *string `json:"description"` // error code // Required: true ErrorCode *int64 `json:"error_code"` // ok // Required: true Ok *bool `json:"ok"` // result // Required: true Result *models.User `json:"result"` }
GetMeOKBody get me o k body swagger:model GetMeOKBody
func (*GetMeOKBody) MarshalBinary ¶
func (o *GetMeOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMeOKBody) UnmarshalBinary ¶
func (o *GetMeOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMeParams ¶
type GetMeParams struct { /*Token bot's token to authorize the request */ Token *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMeParams contains all the parameters to send to the API endpoint for the get me operation typically these are written to a http.Request
func NewGetMeParams ¶
func NewGetMeParams() *GetMeParams
NewGetMeParams creates a new GetMeParams object with the default values initialized.
func NewGetMeParamsWithContext ¶
func NewGetMeParamsWithContext(ctx context.Context) *GetMeParams
NewGetMeParamsWithContext creates a new GetMeParams object with the default values initialized, and the ability to set a context for a request
func NewGetMeParamsWithHTTPClient ¶
func NewGetMeParamsWithHTTPClient(client *http.Client) *GetMeParams
NewGetMeParamsWithHTTPClient creates a new GetMeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetMeParamsWithTimeout ¶
func NewGetMeParamsWithTimeout(timeout time.Duration) *GetMeParams
NewGetMeParamsWithTimeout creates a new GetMeParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetMeParams) SetContext ¶
func (o *GetMeParams) SetContext(ctx context.Context)
SetContext adds the context to the get me params
func (*GetMeParams) SetHTTPClient ¶
func (o *GetMeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get me params
func (*GetMeParams) SetTimeout ¶
func (o *GetMeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get me params
func (*GetMeParams) SetToken ¶
func (o *GetMeParams) SetToken(token *string)
SetToken adds the token to the get me params
func (*GetMeParams) WithContext ¶
func (o *GetMeParams) WithContext(ctx context.Context) *GetMeParams
WithContext adds the context to the get me params
func (*GetMeParams) WithHTTPClient ¶
func (o *GetMeParams) WithHTTPClient(client *http.Client) *GetMeParams
WithHTTPClient adds the HTTPClient to the get me params
func (*GetMeParams) WithTimeout ¶
func (o *GetMeParams) WithTimeout(timeout time.Duration) *GetMeParams
WithTimeout adds the timeout to the get me params
func (*GetMeParams) WithToken ¶
func (o *GetMeParams) WithToken(token *string) *GetMeParams
WithToken adds the token to the get me params
func (*GetMeParams) WriteToRequest ¶
func (o *GetMeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMeReader ¶
type GetMeReader struct {
// contains filtered or unexported fields
}
GetMeReader is a Reader for the GetMe structure.
func (*GetMeReader) ReadResponse ¶
func (o *GetMeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMeUnauthorized ¶
type GetMeUnauthorized struct {
}GetMeUnauthorized handles this case with default header values.
Unauthorized
func NewGetMeUnauthorized ¶
func NewGetMeUnauthorized() *GetMeUnauthorized
NewGetMeUnauthorized creates a GetMeUnauthorized with default headers values
func (*GetMeUnauthorized) Error ¶
func (o *GetMeUnauthorized) Error() string
type GetUserProfilePhotosBadRequest ¶
GetUserProfilePhotosBadRequest handles this case with default header values.
Bad Request
func NewGetUserProfilePhotosBadRequest ¶
func NewGetUserProfilePhotosBadRequest() *GetUserProfilePhotosBadRequest
NewGetUserProfilePhotosBadRequest creates a GetUserProfilePhotosBadRequest with default headers values
func (*GetUserProfilePhotosBadRequest) Error ¶
func (o *GetUserProfilePhotosBadRequest) Error() string
type GetUserProfilePhotosEnhanceYourCalm ¶
GetUserProfilePhotosEnhanceYourCalm handles this case with default header values.
Flood
func NewGetUserProfilePhotosEnhanceYourCalm ¶
func NewGetUserProfilePhotosEnhanceYourCalm() *GetUserProfilePhotosEnhanceYourCalm
NewGetUserProfilePhotosEnhanceYourCalm creates a GetUserProfilePhotosEnhanceYourCalm with default headers values
func (*GetUserProfilePhotosEnhanceYourCalm) Error ¶
func (o *GetUserProfilePhotosEnhanceYourCalm) Error() string
type GetUserProfilePhotosForbidden ¶
GetUserProfilePhotosForbidden handles this case with default header values.
Forbidden
func NewGetUserProfilePhotosForbidden ¶
func NewGetUserProfilePhotosForbidden() *GetUserProfilePhotosForbidden
NewGetUserProfilePhotosForbidden creates a GetUserProfilePhotosForbidden with default headers values
func (*GetUserProfilePhotosForbidden) Error ¶
func (o *GetUserProfilePhotosForbidden) Error() string
type GetUserProfilePhotosInternalServerError ¶
GetUserProfilePhotosInternalServerError handles this case with default header values.
Internal
func NewGetUserProfilePhotosInternalServerError ¶
func NewGetUserProfilePhotosInternalServerError() *GetUserProfilePhotosInternalServerError
NewGetUserProfilePhotosInternalServerError creates a GetUserProfilePhotosInternalServerError with default headers values
func (*GetUserProfilePhotosInternalServerError) Error ¶
func (o *GetUserProfilePhotosInternalServerError) Error() string
type GetUserProfilePhotosNotFound ¶
GetUserProfilePhotosNotFound handles this case with default header values.
Not Found
func NewGetUserProfilePhotosNotFound ¶
func NewGetUserProfilePhotosNotFound() *GetUserProfilePhotosNotFound
NewGetUserProfilePhotosNotFound creates a GetUserProfilePhotosNotFound with default headers values
func (*GetUserProfilePhotosNotFound) Error ¶
func (o *GetUserProfilePhotosNotFound) Error() string
type GetUserProfilePhotosOK ¶
type GetUserProfilePhotosOK struct {
Payload GetUserProfilePhotosOKBody
}
GetUserProfilePhotosOK handles this case with default header values.
GetUserProfilePhotosOK get user profile photos o k
func NewGetUserProfilePhotosOK ¶
func NewGetUserProfilePhotosOK() *GetUserProfilePhotosOK
NewGetUserProfilePhotosOK creates a GetUserProfilePhotosOK with default headers values
func (*GetUserProfilePhotosOK) Error ¶
func (o *GetUserProfilePhotosOK) Error() string
type GetUserProfilePhotosOKBody ¶
type GetUserProfilePhotosOKBody struct { // description // Required: true Description *string `json:"description"` // error code // Required: true ErrorCode *int64 `json:"error_code"` // ok // Required: true Ok *bool `json:"ok"` // result // Required: true Result *models.UserProfilePhotos `json:"result"` }
GetUserProfilePhotosOKBody get user profile photos o k body swagger:model GetUserProfilePhotosOKBody
func (*GetUserProfilePhotosOKBody) MarshalBinary ¶
func (o *GetUserProfilePhotosOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetUserProfilePhotosOKBody) UnmarshalBinary ¶
func (o *GetUserProfilePhotosOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetUserProfilePhotosParams ¶
type GetUserProfilePhotosParams struct { /*Limit*/ Limit *int64 /*Offset*/ Offset *int64 /*Token bot's token to authorize the request */ Token *string /*UserID*/ UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserProfilePhotosParams contains all the parameters to send to the API endpoint for the get user profile photos operation typically these are written to a http.Request
func NewGetUserProfilePhotosParams ¶
func NewGetUserProfilePhotosParams() *GetUserProfilePhotosParams
NewGetUserProfilePhotosParams creates a new GetUserProfilePhotosParams object with the default values initialized.
func NewGetUserProfilePhotosParamsWithContext ¶
func NewGetUserProfilePhotosParamsWithContext(ctx context.Context) *GetUserProfilePhotosParams
NewGetUserProfilePhotosParamsWithContext creates a new GetUserProfilePhotosParams object with the default values initialized, and the ability to set a context for a request
func NewGetUserProfilePhotosParamsWithHTTPClient ¶
func NewGetUserProfilePhotosParamsWithHTTPClient(client *http.Client) *GetUserProfilePhotosParams
NewGetUserProfilePhotosParamsWithHTTPClient creates a new GetUserProfilePhotosParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetUserProfilePhotosParamsWithTimeout ¶
func NewGetUserProfilePhotosParamsWithTimeout(timeout time.Duration) *GetUserProfilePhotosParams
NewGetUserProfilePhotosParamsWithTimeout creates a new GetUserProfilePhotosParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetUserProfilePhotosParams) SetContext ¶
func (o *GetUserProfilePhotosParams) SetContext(ctx context.Context)
SetContext adds the context to the get user profile photos params
func (*GetUserProfilePhotosParams) SetHTTPClient ¶
func (o *GetUserProfilePhotosParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user profile photos params
func (*GetUserProfilePhotosParams) SetLimit ¶
func (o *GetUserProfilePhotosParams) SetLimit(limit *int64)
SetLimit adds the limit to the get user profile photos params
func (*GetUserProfilePhotosParams) SetOffset ¶
func (o *GetUserProfilePhotosParams) SetOffset(offset *int64)
SetOffset adds the offset to the get user profile photos params
func (*GetUserProfilePhotosParams) SetTimeout ¶
func (o *GetUserProfilePhotosParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user profile photos params
func (*GetUserProfilePhotosParams) SetToken ¶
func (o *GetUserProfilePhotosParams) SetToken(token *string)
SetToken adds the token to the get user profile photos params
func (*GetUserProfilePhotosParams) SetUserID ¶
func (o *GetUserProfilePhotosParams) SetUserID(userID int64)
SetUserID adds the userId to the get user profile photos params
func (*GetUserProfilePhotosParams) WithContext ¶
func (o *GetUserProfilePhotosParams) WithContext(ctx context.Context) *GetUserProfilePhotosParams
WithContext adds the context to the get user profile photos params
func (*GetUserProfilePhotosParams) WithHTTPClient ¶
func (o *GetUserProfilePhotosParams) WithHTTPClient(client *http.Client) *GetUserProfilePhotosParams
WithHTTPClient adds the HTTPClient to the get user profile photos params
func (*GetUserProfilePhotosParams) WithLimit ¶
func (o *GetUserProfilePhotosParams) WithLimit(limit *int64) *GetUserProfilePhotosParams
WithLimit adds the limit to the get user profile photos params
func (*GetUserProfilePhotosParams) WithOffset ¶
func (o *GetUserProfilePhotosParams) WithOffset(offset *int64) *GetUserProfilePhotosParams
WithOffset adds the offset to the get user profile photos params
func (*GetUserProfilePhotosParams) WithTimeout ¶
func (o *GetUserProfilePhotosParams) WithTimeout(timeout time.Duration) *GetUserProfilePhotosParams
WithTimeout adds the timeout to the get user profile photos params
func (*GetUserProfilePhotosParams) WithToken ¶
func (o *GetUserProfilePhotosParams) WithToken(token *string) *GetUserProfilePhotosParams
WithToken adds the token to the get user profile photos params
func (*GetUserProfilePhotosParams) WithUserID ¶
func (o *GetUserProfilePhotosParams) WithUserID(userID int64) *GetUserProfilePhotosParams
WithUserID adds the userID to the get user profile photos params
func (*GetUserProfilePhotosParams) WriteToRequest ¶
func (o *GetUserProfilePhotosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserProfilePhotosReader ¶
type GetUserProfilePhotosReader struct {
// contains filtered or unexported fields
}
GetUserProfilePhotosReader is a Reader for the GetUserProfilePhotos structure.
func (*GetUserProfilePhotosReader) ReadResponse ¶
func (o *GetUserProfilePhotosReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserProfilePhotosUnauthorized ¶
type GetUserProfilePhotosUnauthorized struct {
}GetUserProfilePhotosUnauthorized handles this case with default header values.
Unauthorized
func NewGetUserProfilePhotosUnauthorized ¶
func NewGetUserProfilePhotosUnauthorized() *GetUserProfilePhotosUnauthorized
NewGetUserProfilePhotosUnauthorized creates a GetUserProfilePhotosUnauthorized with default headers values
func (*GetUserProfilePhotosUnauthorized) Error ¶
func (o *GetUserProfilePhotosUnauthorized) Error() string