Documentation
¶
Index ¶
- type BatchForumCreateConflict
- type BatchForumCreateOK
- type BatchForumCreateParams
- func NewBatchForumCreateParams() *BatchForumCreateParams
- func NewBatchForumCreateParamsWithContext(ctx context.Context) *BatchForumCreateParams
- func NewBatchForumCreateParamsWithHTTPClient(client *http.Client) *BatchForumCreateParams
- func NewBatchForumCreateParamsWithTimeout(timeout time.Duration) *BatchForumCreateParams
- func (o *BatchForumCreateParams) SetContext(ctx context.Context)
- func (o *BatchForumCreateParams) SetForums(forums []*models.Forum)
- func (o *BatchForumCreateParams) SetHTTPClient(client *http.Client)
- func (o *BatchForumCreateParams) SetTimeout(timeout time.Duration)
- func (o *BatchForumCreateParams) WithContext(ctx context.Context) *BatchForumCreateParams
- func (o *BatchForumCreateParams) WithForums(forums []*models.Forum) *BatchForumCreateParams
- func (o *BatchForumCreateParams) WithHTTPClient(client *http.Client) *BatchForumCreateParams
- func (o *BatchForumCreateParams) WithTimeout(timeout time.Duration) *BatchForumCreateParams
- func (o *BatchForumCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchForumCreateReader
- type BatchUserCreateConflict
- type BatchUserCreateOK
- type BatchUserCreateParams
- func NewBatchUserCreateParams() *BatchUserCreateParams
- func NewBatchUserCreateParamsWithContext(ctx context.Context) *BatchUserCreateParams
- func NewBatchUserCreateParamsWithHTTPClient(client *http.Client) *BatchUserCreateParams
- func NewBatchUserCreateParamsWithTimeout(timeout time.Duration) *BatchUserCreateParams
- func (o *BatchUserCreateParams) SetContext(ctx context.Context)
- func (o *BatchUserCreateParams) SetHTTPClient(client *http.Client)
- func (o *BatchUserCreateParams) SetProfiles(profiles []*models.User)
- func (o *BatchUserCreateParams) SetTimeout(timeout time.Duration)
- func (o *BatchUserCreateParams) WithContext(ctx context.Context) *BatchUserCreateParams
- func (o *BatchUserCreateParams) WithHTTPClient(client *http.Client) *BatchUserCreateParams
- func (o *BatchUserCreateParams) WithProfiles(profiles []*models.User) *BatchUserCreateParams
- func (o *BatchUserCreateParams) WithTimeout(timeout time.Duration) *BatchUserCreateParams
- func (o *BatchUserCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BatchUserCreateReader
- type Client
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchForumCreateConflict ¶
type BatchForumCreateConflict struct { }
BatchForumCreateConflict handles this case with default header values.
Хотя бы один форум уже присутсвует в базе данных.
func NewBatchForumCreateConflict ¶
func NewBatchForumCreateConflict() *BatchForumCreateConflict
NewBatchForumCreateConflict creates a BatchForumCreateConflict with default headers values
func (*BatchForumCreateConflict) Error ¶
func (o *BatchForumCreateConflict) Error() string
type BatchForumCreateOK ¶
type BatchForumCreateOK struct {
Payload []int32
}
BatchForumCreateOK handles this case with default header values.
Форумы созданы успешно.
func NewBatchForumCreateOK ¶
func NewBatchForumCreateOK() *BatchForumCreateOK
NewBatchForumCreateOK creates a BatchForumCreateOK with default headers values
func (*BatchForumCreateOK) Error ¶
func (o *BatchForumCreateOK) Error() string
type BatchForumCreateParams ¶
type BatchForumCreateParams struct { /*Forums Данные форумов. */ Forums []*models.Forum Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BatchForumCreateParams contains all the parameters to send to the API endpoint for the batch forum create operation typically these are written to a http.Request
func NewBatchForumCreateParams ¶
func NewBatchForumCreateParams() *BatchForumCreateParams
NewBatchForumCreateParams creates a new BatchForumCreateParams object with the default values initialized.
func NewBatchForumCreateParamsWithContext ¶
func NewBatchForumCreateParamsWithContext(ctx context.Context) *BatchForumCreateParams
NewBatchForumCreateParamsWithContext creates a new BatchForumCreateParams object with the default values initialized, and the ability to set a context for a request
func NewBatchForumCreateParamsWithHTTPClient ¶
func NewBatchForumCreateParamsWithHTTPClient(client *http.Client) *BatchForumCreateParams
NewBatchForumCreateParamsWithHTTPClient creates a new BatchForumCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBatchForumCreateParamsWithTimeout ¶
func NewBatchForumCreateParamsWithTimeout(timeout time.Duration) *BatchForumCreateParams
NewBatchForumCreateParamsWithTimeout creates a new BatchForumCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*BatchForumCreateParams) SetContext ¶
func (o *BatchForumCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the batch forum create params
func (*BatchForumCreateParams) SetForums ¶
func (o *BatchForumCreateParams) SetForums(forums []*models.Forum)
SetForums adds the forums to the batch forum create params
func (*BatchForumCreateParams) SetHTTPClient ¶
func (o *BatchForumCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the batch forum create params
func (*BatchForumCreateParams) SetTimeout ¶
func (o *BatchForumCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the batch forum create params
func (*BatchForumCreateParams) WithContext ¶
func (o *BatchForumCreateParams) WithContext(ctx context.Context) *BatchForumCreateParams
WithContext adds the context to the batch forum create params
func (*BatchForumCreateParams) WithForums ¶
func (o *BatchForumCreateParams) WithForums(forums []*models.Forum) *BatchForumCreateParams
WithForums adds the forums to the batch forum create params
func (*BatchForumCreateParams) WithHTTPClient ¶
func (o *BatchForumCreateParams) WithHTTPClient(client *http.Client) *BatchForumCreateParams
WithHTTPClient adds the HTTPClient to the batch forum create params
func (*BatchForumCreateParams) WithTimeout ¶
func (o *BatchForumCreateParams) WithTimeout(timeout time.Duration) *BatchForumCreateParams
WithTimeout adds the timeout to the batch forum create params
func (*BatchForumCreateParams) WriteToRequest ¶
func (o *BatchForumCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BatchForumCreateReader ¶
type BatchForumCreateReader struct {
// contains filtered or unexported fields
}
BatchForumCreateReader is a Reader for the BatchForumCreate structure.
func (*BatchForumCreateReader) ReadResponse ¶
func (o *BatchForumCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type BatchUserCreateConflict ¶
type BatchUserCreateConflict struct { }
BatchUserCreateConflict handles this case with default header values.
Хотя бы один пользователь уже присутсвует в базе данных.
func NewBatchUserCreateConflict ¶
func NewBatchUserCreateConflict() *BatchUserCreateConflict
NewBatchUserCreateConflict creates a BatchUserCreateConflict with default headers values
func (*BatchUserCreateConflict) Error ¶
func (o *BatchUserCreateConflict) Error() string
type BatchUserCreateOK ¶
type BatchUserCreateOK struct { }
BatchUserCreateOK handles this case with default header values.
Пользователи созданы успешно.
func NewBatchUserCreateOK ¶
func NewBatchUserCreateOK() *BatchUserCreateOK
NewBatchUserCreateOK creates a BatchUserCreateOK with default headers values
func (*BatchUserCreateOK) Error ¶
func (o *BatchUserCreateOK) Error() string
type BatchUserCreateParams ¶
type BatchUserCreateParams struct { /*Profiles Данные пользовательских профилей. */ Profiles []*models.User Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
BatchUserCreateParams contains all the parameters to send to the API endpoint for the batch user create operation typically these are written to a http.Request
func NewBatchUserCreateParams ¶
func NewBatchUserCreateParams() *BatchUserCreateParams
NewBatchUserCreateParams creates a new BatchUserCreateParams object with the default values initialized.
func NewBatchUserCreateParamsWithContext ¶
func NewBatchUserCreateParamsWithContext(ctx context.Context) *BatchUserCreateParams
NewBatchUserCreateParamsWithContext creates a new BatchUserCreateParams object with the default values initialized, and the ability to set a context for a request
func NewBatchUserCreateParamsWithHTTPClient ¶
func NewBatchUserCreateParamsWithHTTPClient(client *http.Client) *BatchUserCreateParams
NewBatchUserCreateParamsWithHTTPClient creates a new BatchUserCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewBatchUserCreateParamsWithTimeout ¶
func NewBatchUserCreateParamsWithTimeout(timeout time.Duration) *BatchUserCreateParams
NewBatchUserCreateParamsWithTimeout creates a new BatchUserCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*BatchUserCreateParams) SetContext ¶
func (o *BatchUserCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the batch user create params
func (*BatchUserCreateParams) SetHTTPClient ¶
func (o *BatchUserCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the batch user create params
func (*BatchUserCreateParams) SetProfiles ¶
func (o *BatchUserCreateParams) SetProfiles(profiles []*models.User)
SetProfiles adds the profiles to the batch user create params
func (*BatchUserCreateParams) SetTimeout ¶
func (o *BatchUserCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the batch user create params
func (*BatchUserCreateParams) WithContext ¶
func (o *BatchUserCreateParams) WithContext(ctx context.Context) *BatchUserCreateParams
WithContext adds the context to the batch user create params
func (*BatchUserCreateParams) WithHTTPClient ¶
func (o *BatchUserCreateParams) WithHTTPClient(client *http.Client) *BatchUserCreateParams
WithHTTPClient adds the HTTPClient to the batch user create params
func (*BatchUserCreateParams) WithProfiles ¶
func (o *BatchUserCreateParams) WithProfiles(profiles []*models.User) *BatchUserCreateParams
WithProfiles adds the profiles to the batch user create params
func (*BatchUserCreateParams) WithTimeout ¶
func (o *BatchUserCreateParams) WithTimeout(timeout time.Duration) *BatchUserCreateParams
WithTimeout adds the timeout to the batch user create params
func (*BatchUserCreateParams) WriteToRequest ¶
func (o *BatchUserCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type BatchUserCreateReader ¶
type BatchUserCreateReader struct {
// contains filtered or unexported fields
}
BatchUserCreateReader is a Reader for the BatchUserCreate structure.
func (*BatchUserCreateReader) ReadResponse ¶
func (o *BatchUserCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for draft API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new draft API client.
func (*Client) BatchForumCreate ¶
func (a *Client) BatchForumCreate(params *BatchForumCreateParams) (*BatchForumCreateOK, error)
BatchForumCreate добавлениеs новых форумов
Массовое добавление Форумов в базу.
func (*Client) BatchUserCreate ¶
func (a *Client) BatchUserCreate(params *BatchUserCreateParams) (*BatchUserCreateOK, error)
BatchUserCreate добавлениеs новых пользователей
Массовое добавление пользователей в базу.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client