Documentation
¶
Index ¶
- type Client
- func (a *Client) GetCreator(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, *GetCreatorUnauthorized, *GetCreatorNotFound, ...)
- func (a *Client) GetCreatorShort(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetCreatorInternalServerError
- type GetCreatorNotFound
- type GetCreatorOK
- type GetCreatorParams
- func (o *GetCreatorParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetCreatorParams) SetContext(ctx context.Context)
- func (o *GetCreatorParams) SetHTTPClient(client *http.Client)
- func (o *GetCreatorParams) SetNamespace(namespace string)
- func (o *GetCreatorParams) SetTimeout(timeout time.Duration)
- func (o *GetCreatorParams) SetUserID(userID string)
- func (o *GetCreatorParams) WithContext(ctx context.Context) *GetCreatorParams
- func (o *GetCreatorParams) WithHTTPClient(client *http.Client) *GetCreatorParams
- func (o *GetCreatorParams) WithNamespace(namespace string) *GetCreatorParams
- func (o *GetCreatorParams) WithTimeout(timeout time.Duration) *GetCreatorParams
- func (o *GetCreatorParams) WithUserID(userID string) *GetCreatorParams
- func (o *GetCreatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetCreatorReader
- type GetCreatorUnauthorized
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 public creator API
func (*Client) GetCreator ¶
func (a *Client) GetCreator(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, *GetCreatorUnauthorized, *GetCreatorNotFound, *GetCreatorInternalServerError, error)
GetCreator gets creator stats number of total like by other user number of total following and follower user
func (*Client) GetCreatorShort ¶
func (a *Client) GetCreatorShort(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, error)
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { GetCreator(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, *GetCreatorUnauthorized, *GetCreatorNotFound, *GetCreatorInternalServerError, error) GetCreatorShort(params *GetCreatorParams, authInfo runtime.ClientAuthInfoWriter) (*GetCreatorOK, 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 public creator API client.
type GetCreatorInternalServerError ¶
type GetCreatorInternalServerError struct {
Payload *ugcclientmodels.ResponseError
}
GetCreatorInternalServerError handles this case with default header values.
Internal Server Error
func NewGetCreatorInternalServerError ¶
func NewGetCreatorInternalServerError() *GetCreatorInternalServerError
NewGetCreatorInternalServerError creates a GetCreatorInternalServerError with default headers values
func (*GetCreatorInternalServerError) Error ¶
func (o *GetCreatorInternalServerError) Error() string
func (*GetCreatorInternalServerError) GetPayload ¶
func (o *GetCreatorInternalServerError) GetPayload() *ugcclientmodels.ResponseError
type GetCreatorNotFound ¶
type GetCreatorNotFound struct {
Payload *ugcclientmodels.ResponseError
}
GetCreatorNotFound handles this case with default header values.
Not Found
func NewGetCreatorNotFound ¶
func NewGetCreatorNotFound() *GetCreatorNotFound
NewGetCreatorNotFound creates a GetCreatorNotFound with default headers values
func (*GetCreatorNotFound) Error ¶
func (o *GetCreatorNotFound) Error() string
func (*GetCreatorNotFound) GetPayload ¶
func (o *GetCreatorNotFound) GetPayload() *ugcclientmodels.ResponseError
type GetCreatorOK ¶
type GetCreatorOK struct {
Payload *ugcclientmodels.ModelsCreatorOverviewResponse
}
GetCreatorOK handles this case with default header values.
OK
func NewGetCreatorOK ¶
func NewGetCreatorOK() *GetCreatorOK
NewGetCreatorOK creates a GetCreatorOK with default headers values
func (*GetCreatorOK) Error ¶
func (o *GetCreatorOK) Error() string
func (*GetCreatorOK) GetPayload ¶
func (o *GetCreatorOK) GetPayload() *ugcclientmodels.ModelsCreatorOverviewResponse
type GetCreatorParams ¶
type GetCreatorParams struct { /*Namespace namespace of the game */ Namespace string /*UserID user ID */ UserID string AuthInfoWriter runtime.ClientAuthInfoWriter Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetCreatorParams contains all the parameters to send to the API endpoint for the get creator operation typically these are written to a http.Request
func NewGetCreatorParams ¶
func NewGetCreatorParams() *GetCreatorParams
NewGetCreatorParams creates a new GetCreatorParams object with the default values initialized.
func NewGetCreatorParamsWithContext ¶
func NewGetCreatorParamsWithContext(ctx context.Context) *GetCreatorParams
NewGetCreatorParamsWithContext creates a new GetCreatorParams object with the default values initialized, and the ability to set a context for a request
func NewGetCreatorParamsWithHTTPClient ¶
func NewGetCreatorParamsWithHTTPClient(client *http.Client) *GetCreatorParams
NewGetCreatorParamsWithHTTPClient creates a new GetCreatorParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetCreatorParamsWithTimeout ¶
func NewGetCreatorParamsWithTimeout(timeout time.Duration) *GetCreatorParams
NewGetCreatorParamsWithTimeout creates a new GetCreatorParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetCreatorParams) SetAuthInfoWriter ¶ added in v0.17.0
func (o *GetCreatorParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
SetAuthInfoWriter adds the authInfoWriter to the get creator params
func (*GetCreatorParams) SetContext ¶
func (o *GetCreatorParams) SetContext(ctx context.Context)
SetContext adds the context to the get creator params
func (*GetCreatorParams) SetHTTPClient ¶
func (o *GetCreatorParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get creator params
func (*GetCreatorParams) SetNamespace ¶
func (o *GetCreatorParams) SetNamespace(namespace string)
SetNamespace adds the namespace to the get creator params
func (*GetCreatorParams) SetTimeout ¶
func (o *GetCreatorParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get creator params
func (*GetCreatorParams) SetUserID ¶
func (o *GetCreatorParams) SetUserID(userID string)
SetUserID adds the userId to the get creator params
func (*GetCreatorParams) WithContext ¶
func (o *GetCreatorParams) WithContext(ctx context.Context) *GetCreatorParams
WithContext adds the context to the get creator params
func (*GetCreatorParams) WithHTTPClient ¶
func (o *GetCreatorParams) WithHTTPClient(client *http.Client) *GetCreatorParams
WithHTTPClient adds the HTTPClient to the get creator params
func (*GetCreatorParams) WithNamespace ¶
func (o *GetCreatorParams) WithNamespace(namespace string) *GetCreatorParams
WithNamespace adds the namespace to the get creator params
func (*GetCreatorParams) WithTimeout ¶
func (o *GetCreatorParams) WithTimeout(timeout time.Duration) *GetCreatorParams
WithTimeout adds the timeout to the get creator params
func (*GetCreatorParams) WithUserID ¶
func (o *GetCreatorParams) WithUserID(userID string) *GetCreatorParams
WithUserID adds the userID to the get creator params
func (*GetCreatorParams) WriteToRequest ¶
func (o *GetCreatorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetCreatorReader ¶
type GetCreatorReader struct {
// contains filtered or unexported fields
}
GetCreatorReader is a Reader for the GetCreator structure.
func (*GetCreatorReader) ReadResponse ¶
func (o *GetCreatorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetCreatorUnauthorized ¶
type GetCreatorUnauthorized struct {
}GetCreatorUnauthorized handles this case with default header values.
Unauthorized
func NewGetCreatorUnauthorized ¶
func NewGetCreatorUnauthorized() *GetCreatorUnauthorized
NewGetCreatorUnauthorized creates a GetCreatorUnauthorized with default headers values
func (*GetCreatorUnauthorized) Error ¶
func (o *GetCreatorUnauthorized) Error() string
func (*GetCreatorUnauthorized) GetPayload ¶
func (o *GetCreatorUnauthorized) GetPayload() *ugcclientmodels.ResponseError