Documentation
¶
Index ¶
- type ClearOK
- type ClearParams
- func (o *ClearParams) SetContext(ctx context.Context)
- func (o *ClearParams) SetHTTPClient(client *http.Client)
- func (o *ClearParams) SetTimeout(timeout time.Duration)
- func (o *ClearParams) WithContext(ctx context.Context) *ClearParams
- func (o *ClearParams) WithHTTPClient(client *http.Client) *ClearParams
- func (o *ClearParams) WithTimeout(timeout time.Duration) *ClearParams
- func (o *ClearParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ClearReader
- type Client
- func (a *Client) Clear(params *ClearParams) (*ClearOK, error)
- func (a *Client) ForumCreate(params *ForumCreateParams) (*ForumCreateCreated, error)
- func (a *Client) ForumGetOne(params *ForumGetOneParams) (*ForumGetOneOK, error)
- func (a *Client) ForumGetThreads(params *ForumGetThreadsParams) (*ForumGetThreadsOK, error)
- func (a *Client) ForumGetUsers(params *ForumGetUsersParams) (*ForumGetUsersOK, error)
- func (a *Client) PostGetOne(params *PostGetOneParams) (*PostGetOneOK, error)
- func (a *Client) PostUpdate(params *PostUpdateParams) (*PostUpdateOK, error)
- func (a *Client) PostsCreate(params *PostsCreateParams) (*PostsCreateCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Status(params *StatusParams) (*StatusOK, error)
- func (a *Client) ThreadCreate(params *ThreadCreateParams) (*ThreadCreateCreated, error)
- func (a *Client) ThreadGetOne(params *ThreadGetOneParams) (*ThreadGetOneOK, error)
- func (a *Client) ThreadGetPosts(params *ThreadGetPostsParams) (*ThreadGetPostsOK, error)
- func (a *Client) ThreadUpdate(params *ThreadUpdateParams) (*ThreadUpdateOK, error)
- func (a *Client) ThreadVote(params *ThreadVoteParams) (*ThreadVoteOK, error)
- func (a *Client) UserCreate(params *UserCreateParams) (*UserCreateCreated, error)
- func (a *Client) UserGetOne(params *UserGetOneParams) (*UserGetOneOK, error)
- func (a *Client) UserUpdate(params *UserUpdateParams) (*UserUpdateOK, error)
- type ForumCreateConflict
- type ForumCreateCreated
- type ForumCreateNotFound
- type ForumCreateParams
- func (o *ForumCreateParams) SetContext(ctx context.Context)
- func (o *ForumCreateParams) SetForum(forum *models.Forum)
- func (o *ForumCreateParams) SetHTTPClient(client *http.Client)
- func (o *ForumCreateParams) SetTimeout(timeout time.Duration)
- func (o *ForumCreateParams) WithContext(ctx context.Context) *ForumCreateParams
- func (o *ForumCreateParams) WithForum(forum *models.Forum) *ForumCreateParams
- func (o *ForumCreateParams) WithHTTPClient(client *http.Client) *ForumCreateParams
- func (o *ForumCreateParams) WithTimeout(timeout time.Duration) *ForumCreateParams
- func (o *ForumCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForumCreateReader
- type ForumGetOneNotFound
- type ForumGetOneOK
- type ForumGetOneParams
- func (o *ForumGetOneParams) SetContext(ctx context.Context)
- func (o *ForumGetOneParams) SetHTTPClient(client *http.Client)
- func (o *ForumGetOneParams) SetSlug(slug string)
- func (o *ForumGetOneParams) SetTimeout(timeout time.Duration)
- func (o *ForumGetOneParams) WithContext(ctx context.Context) *ForumGetOneParams
- func (o *ForumGetOneParams) WithHTTPClient(client *http.Client) *ForumGetOneParams
- func (o *ForumGetOneParams) WithSlug(slug string) *ForumGetOneParams
- func (o *ForumGetOneParams) WithTimeout(timeout time.Duration) *ForumGetOneParams
- func (o *ForumGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForumGetOneReader
- type ForumGetThreadsNotFound
- type ForumGetThreadsOK
- type ForumGetThreadsParams
- func NewForumGetThreadsParams() *ForumGetThreadsParams
- func NewForumGetThreadsParamsWithContext(ctx context.Context) *ForumGetThreadsParams
- func NewForumGetThreadsParamsWithHTTPClient(client *http.Client) *ForumGetThreadsParams
- func NewForumGetThreadsParamsWithTimeout(timeout time.Duration) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) SetContext(ctx context.Context)
- func (o *ForumGetThreadsParams) SetDesc(desc *bool)
- func (o *ForumGetThreadsParams) SetHTTPClient(client *http.Client)
- func (o *ForumGetThreadsParams) SetLimit(limit *int32)
- func (o *ForumGetThreadsParams) SetSince(since *strfmt.DateTime)
- func (o *ForumGetThreadsParams) SetSlug(slug string)
- func (o *ForumGetThreadsParams) SetTimeout(timeout time.Duration)
- func (o *ForumGetThreadsParams) WithContext(ctx context.Context) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithDesc(desc *bool) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithHTTPClient(client *http.Client) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithLimit(limit *int32) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithSince(since *strfmt.DateTime) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithSlug(slug string) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WithTimeout(timeout time.Duration) *ForumGetThreadsParams
- func (o *ForumGetThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForumGetThreadsReader
- type ForumGetUsersNotFound
- type ForumGetUsersOK
- type ForumGetUsersParams
- func (o *ForumGetUsersParams) SetContext(ctx context.Context)
- func (o *ForumGetUsersParams) SetDesc(desc *bool)
- func (o *ForumGetUsersParams) SetHTTPClient(client *http.Client)
- func (o *ForumGetUsersParams) SetLimit(limit *int32)
- func (o *ForumGetUsersParams) SetSince(since *string)
- func (o *ForumGetUsersParams) SetSlug(slug string)
- func (o *ForumGetUsersParams) SetTimeout(timeout time.Duration)
- func (o *ForumGetUsersParams) WithContext(ctx context.Context) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithDesc(desc *bool) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithHTTPClient(client *http.Client) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithLimit(limit *int32) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithSince(since *string) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithSlug(slug string) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WithTimeout(timeout time.Duration) *ForumGetUsersParams
- func (o *ForumGetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ForumGetUsersReader
- type PostGetOneNotFound
- type PostGetOneOK
- type PostGetOneParams
- func (o *PostGetOneParams) SetContext(ctx context.Context)
- func (o *PostGetOneParams) SetHTTPClient(client *http.Client)
- func (o *PostGetOneParams) SetID(id int64)
- func (o *PostGetOneParams) SetRelated(related []string)
- func (o *PostGetOneParams) SetTimeout(timeout time.Duration)
- func (o *PostGetOneParams) WithContext(ctx context.Context) *PostGetOneParams
- func (o *PostGetOneParams) WithHTTPClient(client *http.Client) *PostGetOneParams
- func (o *PostGetOneParams) WithID(id int64) *PostGetOneParams
- func (o *PostGetOneParams) WithRelated(related []string) *PostGetOneParams
- func (o *PostGetOneParams) WithTimeout(timeout time.Duration) *PostGetOneParams
- func (o *PostGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostGetOneReader
- type PostUpdateNotFound
- type PostUpdateOK
- type PostUpdateParams
- func (o *PostUpdateParams) SetContext(ctx context.Context)
- func (o *PostUpdateParams) SetHTTPClient(client *http.Client)
- func (o *PostUpdateParams) SetID(id int64)
- func (o *PostUpdateParams) SetPost(post *models.PostUpdate)
- func (o *PostUpdateParams) SetTimeout(timeout time.Duration)
- func (o *PostUpdateParams) WithContext(ctx context.Context) *PostUpdateParams
- func (o *PostUpdateParams) WithHTTPClient(client *http.Client) *PostUpdateParams
- func (o *PostUpdateParams) WithID(id int64) *PostUpdateParams
- func (o *PostUpdateParams) WithPost(post *models.PostUpdate) *PostUpdateParams
- func (o *PostUpdateParams) WithTimeout(timeout time.Duration) *PostUpdateParams
- func (o *PostUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostUpdateReader
- type PostsCreateConflict
- type PostsCreateCreated
- type PostsCreateNotFound
- type PostsCreateParams
- func (o *PostsCreateParams) SetContext(ctx context.Context)
- func (o *PostsCreateParams) SetHTTPClient(client *http.Client)
- func (o *PostsCreateParams) SetPosts(posts models.Posts)
- func (o *PostsCreateParams) SetSlugOrID(slugOrID string)
- func (o *PostsCreateParams) SetTimeout(timeout time.Duration)
- func (o *PostsCreateParams) WithContext(ctx context.Context) *PostsCreateParams
- func (o *PostsCreateParams) WithHTTPClient(client *http.Client) *PostsCreateParams
- func (o *PostsCreateParams) WithPosts(posts models.Posts) *PostsCreateParams
- func (o *PostsCreateParams) WithSlugOrID(slugOrID string) *PostsCreateParams
- func (o *PostsCreateParams) WithTimeout(timeout time.Duration) *PostsCreateParams
- func (o *PostsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostsCreateReader
- type StatusOK
- type StatusParams
- func (o *StatusParams) SetContext(ctx context.Context)
- func (o *StatusParams) SetHTTPClient(client *http.Client)
- func (o *StatusParams) SetTimeout(timeout time.Duration)
- func (o *StatusParams) WithContext(ctx context.Context) *StatusParams
- func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams
- func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams
- func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type StatusReader
- type ThreadCreateConflict
- type ThreadCreateCreated
- type ThreadCreateNotFound
- type ThreadCreateParams
- func (o *ThreadCreateParams) SetContext(ctx context.Context)
- func (o *ThreadCreateParams) SetHTTPClient(client *http.Client)
- func (o *ThreadCreateParams) SetSlug(slug string)
- func (o *ThreadCreateParams) SetThread(thread *models.Thread)
- func (o *ThreadCreateParams) SetTimeout(timeout time.Duration)
- func (o *ThreadCreateParams) WithContext(ctx context.Context) *ThreadCreateParams
- func (o *ThreadCreateParams) WithHTTPClient(client *http.Client) *ThreadCreateParams
- func (o *ThreadCreateParams) WithSlug(slug string) *ThreadCreateParams
- func (o *ThreadCreateParams) WithThread(thread *models.Thread) *ThreadCreateParams
- func (o *ThreadCreateParams) WithTimeout(timeout time.Duration) *ThreadCreateParams
- func (o *ThreadCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ThreadCreateReader
- type ThreadGetOneNotFound
- type ThreadGetOneOK
- type ThreadGetOneParams
- func (o *ThreadGetOneParams) SetContext(ctx context.Context)
- func (o *ThreadGetOneParams) SetHTTPClient(client *http.Client)
- func (o *ThreadGetOneParams) SetSlugOrID(slugOrID string)
- func (o *ThreadGetOneParams) SetTimeout(timeout time.Duration)
- func (o *ThreadGetOneParams) WithContext(ctx context.Context) *ThreadGetOneParams
- func (o *ThreadGetOneParams) WithHTTPClient(client *http.Client) *ThreadGetOneParams
- func (o *ThreadGetOneParams) WithSlugOrID(slugOrID string) *ThreadGetOneParams
- func (o *ThreadGetOneParams) WithTimeout(timeout time.Duration) *ThreadGetOneParams
- func (o *ThreadGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ThreadGetOneReader
- type ThreadGetPostsNotFound
- type ThreadGetPostsOK
- type ThreadGetPostsParams
- func NewThreadGetPostsParams() *ThreadGetPostsParams
- func NewThreadGetPostsParamsWithContext(ctx context.Context) *ThreadGetPostsParams
- func NewThreadGetPostsParamsWithHTTPClient(client *http.Client) *ThreadGetPostsParams
- func NewThreadGetPostsParamsWithTimeout(timeout time.Duration) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) SetContext(ctx context.Context)
- func (o *ThreadGetPostsParams) SetDesc(desc *bool)
- func (o *ThreadGetPostsParams) SetHTTPClient(client *http.Client)
- func (o *ThreadGetPostsParams) SetLimit(limit *int32)
- func (o *ThreadGetPostsParams) SetSince(since *int64)
- func (o *ThreadGetPostsParams) SetSlugOrID(slugOrID string)
- func (o *ThreadGetPostsParams) SetSort(sort *string)
- func (o *ThreadGetPostsParams) SetTimeout(timeout time.Duration)
- func (o *ThreadGetPostsParams) WithContext(ctx context.Context) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithDesc(desc *bool) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithHTTPClient(client *http.Client) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithLimit(limit *int32) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithSince(since *int64) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithSlugOrID(slugOrID string) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithSort(sort *string) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WithTimeout(timeout time.Duration) *ThreadGetPostsParams
- func (o *ThreadGetPostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ThreadGetPostsReader
- type ThreadUpdateNotFound
- type ThreadUpdateOK
- type ThreadUpdateParams
- func (o *ThreadUpdateParams) SetContext(ctx context.Context)
- func (o *ThreadUpdateParams) SetHTTPClient(client *http.Client)
- func (o *ThreadUpdateParams) SetSlugOrID(slugOrID string)
- func (o *ThreadUpdateParams) SetThread(thread *models.ThreadUpdate)
- func (o *ThreadUpdateParams) SetTimeout(timeout time.Duration)
- func (o *ThreadUpdateParams) WithContext(ctx context.Context) *ThreadUpdateParams
- func (o *ThreadUpdateParams) WithHTTPClient(client *http.Client) *ThreadUpdateParams
- func (o *ThreadUpdateParams) WithSlugOrID(slugOrID string) *ThreadUpdateParams
- func (o *ThreadUpdateParams) WithThread(thread *models.ThreadUpdate) *ThreadUpdateParams
- func (o *ThreadUpdateParams) WithTimeout(timeout time.Duration) *ThreadUpdateParams
- func (o *ThreadUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ThreadUpdateReader
- type ThreadVoteNotFound
- type ThreadVoteOK
- type ThreadVoteParams
- func (o *ThreadVoteParams) SetContext(ctx context.Context)
- func (o *ThreadVoteParams) SetHTTPClient(client *http.Client)
- func (o *ThreadVoteParams) SetSlugOrID(slugOrID string)
- func (o *ThreadVoteParams) SetTimeout(timeout time.Duration)
- func (o *ThreadVoteParams) SetVote(vote *models.Vote)
- func (o *ThreadVoteParams) WithContext(ctx context.Context) *ThreadVoteParams
- func (o *ThreadVoteParams) WithHTTPClient(client *http.Client) *ThreadVoteParams
- func (o *ThreadVoteParams) WithSlugOrID(slugOrID string) *ThreadVoteParams
- func (o *ThreadVoteParams) WithTimeout(timeout time.Duration) *ThreadVoteParams
- func (o *ThreadVoteParams) WithVote(vote *models.Vote) *ThreadVoteParams
- func (o *ThreadVoteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ThreadVoteReader
- type UserCreateConflict
- type UserCreateCreated
- type UserCreateParams
- func (o *UserCreateParams) SetContext(ctx context.Context)
- func (o *UserCreateParams) SetHTTPClient(client *http.Client)
- func (o *UserCreateParams) SetNickname(nickname string)
- func (o *UserCreateParams) SetProfile(profile *models.User)
- func (o *UserCreateParams) SetTimeout(timeout time.Duration)
- func (o *UserCreateParams) WithContext(ctx context.Context) *UserCreateParams
- func (o *UserCreateParams) WithHTTPClient(client *http.Client) *UserCreateParams
- func (o *UserCreateParams) WithNickname(nickname string) *UserCreateParams
- func (o *UserCreateParams) WithProfile(profile *models.User) *UserCreateParams
- func (o *UserCreateParams) WithTimeout(timeout time.Duration) *UserCreateParams
- func (o *UserCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserCreateReader
- type UserGetOneNotFound
- type UserGetOneOK
- type UserGetOneParams
- func (o *UserGetOneParams) SetContext(ctx context.Context)
- func (o *UserGetOneParams) SetHTTPClient(client *http.Client)
- func (o *UserGetOneParams) SetNickname(nickname string)
- func (o *UserGetOneParams) SetTimeout(timeout time.Duration)
- func (o *UserGetOneParams) WithContext(ctx context.Context) *UserGetOneParams
- func (o *UserGetOneParams) WithHTTPClient(client *http.Client) *UserGetOneParams
- func (o *UserGetOneParams) WithNickname(nickname string) *UserGetOneParams
- func (o *UserGetOneParams) WithTimeout(timeout time.Duration) *UserGetOneParams
- func (o *UserGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserGetOneReader
- type UserUpdateConflict
- type UserUpdateNotFound
- type UserUpdateOK
- type UserUpdateParams
- func (o *UserUpdateParams) SetContext(ctx context.Context)
- func (o *UserUpdateParams) SetHTTPClient(client *http.Client)
- func (o *UserUpdateParams) SetNickname(nickname string)
- func (o *UserUpdateParams) SetProfile(profile *models.UserUpdate)
- func (o *UserUpdateParams) SetTimeout(timeout time.Duration)
- func (o *UserUpdateParams) WithContext(ctx context.Context) *UserUpdateParams
- func (o *UserUpdateParams) WithHTTPClient(client *http.Client) *UserUpdateParams
- func (o *UserUpdateParams) WithNickname(nickname string) *UserUpdateParams
- func (o *UserUpdateParams) WithProfile(profile *models.UserUpdate) *UserUpdateParams
- func (o *UserUpdateParams) WithTimeout(timeout time.Duration) *UserUpdateParams
- func (o *UserUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UserUpdateReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClearOK ¶
type ClearOK struct { }
ClearOK handles this case with default header values.
Очистка базы успешно завершена
func NewClearOK ¶
func NewClearOK() *ClearOK
NewClearOK creates a ClearOK with default headers values
type ClearParams ¶
type ClearParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ClearParams contains all the parameters to send to the API endpoint for the clear operation typically these are written to a http.Request
func NewClearParams ¶
func NewClearParams() *ClearParams
NewClearParams creates a new ClearParams object with the default values initialized.
func NewClearParamsWithContext ¶
func NewClearParamsWithContext(ctx context.Context) *ClearParams
NewClearParamsWithContext creates a new ClearParams object with the default values initialized, and the ability to set a context for a request
func NewClearParamsWithHTTPClient ¶
func NewClearParamsWithHTTPClient(client *http.Client) *ClearParams
NewClearParamsWithHTTPClient creates a new ClearParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewClearParamsWithTimeout ¶
func NewClearParamsWithTimeout(timeout time.Duration) *ClearParams
NewClearParamsWithTimeout creates a new ClearParams object with the default values initialized, and the ability to set a timeout on a request
func (*ClearParams) SetContext ¶
func (o *ClearParams) SetContext(ctx context.Context)
SetContext adds the context to the clear params
func (*ClearParams) SetHTTPClient ¶
func (o *ClearParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the clear params
func (*ClearParams) SetTimeout ¶
func (o *ClearParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the clear params
func (*ClearParams) WithContext ¶
func (o *ClearParams) WithContext(ctx context.Context) *ClearParams
WithContext adds the context to the clear params
func (*ClearParams) WithHTTPClient ¶
func (o *ClearParams) WithHTTPClient(client *http.Client) *ClearParams
WithHTTPClient adds the HTTPClient to the clear params
func (*ClearParams) WithTimeout ¶
func (o *ClearParams) WithTimeout(timeout time.Duration) *ClearParams
WithTimeout adds the timeout to the clear params
func (*ClearParams) WriteToRequest ¶
func (o *ClearParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ClearReader ¶
type ClearReader struct {
// contains filtered or unexported fields
}
ClearReader is a Reader for the Clear structure.
func (*ClearReader) ReadResponse ¶
func (o *ClearReader) 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 operations API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new operations API client.
func (*Client) Clear ¶
func (a *Client) Clear(params *ClearParams) (*ClearOK, error)
Clear очисткаs всех данных в базе
Безвозвратное удаление всей пользовательской информации из базы данных.
func (*Client) ForumCreate ¶
func (a *Client) ForumCreate(params *ForumCreateParams) (*ForumCreateCreated, error)
ForumCreate созданиеs форума
Создание нового форума.
func (*Client) ForumGetOne ¶
func (a *Client) ForumGetOne(params *ForumGetOneParams) (*ForumGetOneOK, error)
ForumGetOne получениеs информации о форуме
Получение информации о форуме по его идентификаторе.
func (*Client) ForumGetThreads ¶
func (a *Client) ForumGetThreads(params *ForumGetThreadsParams) (*ForumGetThreadsOK, error)
ForumGetThreads списокs ветвей обсужления форума
Получение списка ветвей обсужления данного форума.
Ветви обсуждения выводятся отсортированные по дате создания.
func (*Client) ForumGetUsers ¶
func (a *Client) ForumGetUsers(params *ForumGetUsersParams) (*ForumGetUsersOK, error)
ForumGetUsers пользователиs данного форума
Получение списка пользователей, у которых есть пост или ветка обсуждения в данном форуме.
Пользователи выводятся отсортированные по nickname в порядке возрастания. Порядок сотрировки должен соответсвовать побайтовому сравнение в нижнем регистре.
func (*Client) PostGetOne ¶
func (a *Client) PostGetOne(params *PostGetOneParams) (*PostGetOneOK, error)
PostGetOne получениеs информации о ветке обсуждения
Получение информации о ветке обсуждения по его имени.
func (*Client) PostUpdate ¶
func (a *Client) PostUpdate(params *PostUpdateParams) (*PostUpdateOK, error)
PostUpdate изменениеs сообщения
Изменение сообщения на форуме.
Если сообщение поменяло текст, то оно должно получить отметку `isEdited`.
func (*Client) PostsCreate ¶ added in v0.1.0
func (a *Client) PostsCreate(params *PostsCreateParams) (*PostsCreateCreated, error)
PostsCreate созданиеs новых постов
Добавление новых постов в ветку обсуждения на форум.
Все посты, созданные в рамках одного вызова данного метода должны иметь одинаковую дату создания (Post.Created).
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) Status ¶
func (a *Client) Status(params *StatusParams) (*StatusOK, error)
Status получениеs инфомарции о базе данных
Получение инфомарции о базе данных.
func (*Client) ThreadCreate ¶
func (a *Client) ThreadCreate(params *ThreadCreateParams) (*ThreadCreateCreated, error)
ThreadCreate созданиеs ветки
Добавление новой ветки обсуждения на форум.
func (*Client) ThreadGetOne ¶
func (a *Client) ThreadGetOne(params *ThreadGetOneParams) (*ThreadGetOneOK, error)
ThreadGetOne получениеs информации о ветке обсуждения
Получение информации о ветке обсуждения по его имени.
func (*Client) ThreadGetPosts ¶
func (a *Client) ThreadGetPosts(params *ThreadGetPostsParams) (*ThreadGetPostsOK, error)
ThreadGetPosts сообщенияs данной ветви обсуждения
Получение списка сообщений в данной ветке форуме.
Сообщения выводятся отсортированные по дате создания.
func (*Client) ThreadUpdate ¶
func (a *Client) ThreadUpdate(params *ThreadUpdateParams) (*ThreadUpdateOK, error)
ThreadUpdate обновлениеs ветки
Обновление ветки обсуждения на форуме.
func (*Client) ThreadVote ¶
func (a *Client) ThreadVote(params *ThreadVoteParams) (*ThreadVoteOK, error)
ThreadVote проголосоватьs за ветвь обсуждения
Изменение голоса за ветвь обсуждения.
Один пользователь учитывается только один раз и может изменить своё мнение.
func (*Client) UserCreate ¶
func (a *Client) UserCreate(params *UserCreateParams) (*UserCreateCreated, error)
UserCreate созданиеs нового пользователя
Создание нового пользователя в базе данных.
func (*Client) UserGetOne ¶
func (a *Client) UserGetOne(params *UserGetOneParams) (*UserGetOneOK, error)
UserGetOne получениеs информации о пользователе
Получение информации о пользователе форума по его имени.
func (*Client) UserUpdate ¶
func (a *Client) UserUpdate(params *UserUpdateParams) (*UserUpdateOK, error)
UserUpdate изменениеs данных о пользователе
Изменение информации в профиле пользователя.
type ForumCreateConflict ¶
ForumCreateConflict handles this case with default header values.
Форум уже присутсвует в базе данных. Возвращает данные ранее созданного форума.
func NewForumCreateConflict ¶
func NewForumCreateConflict() *ForumCreateConflict
NewForumCreateConflict creates a ForumCreateConflict with default headers values
func (*ForumCreateConflict) Error ¶
func (o *ForumCreateConflict) Error() string
type ForumCreateCreated ¶
ForumCreateCreated handles this case with default header values.
Форум успешно создан. Возвращает данные созданного форума.
func NewForumCreateCreated ¶
func NewForumCreateCreated() *ForumCreateCreated
NewForumCreateCreated creates a ForumCreateCreated with default headers values
func (*ForumCreateCreated) Error ¶
func (o *ForumCreateCreated) Error() string
type ForumCreateNotFound ¶
ForumCreateNotFound handles this case with default header values.
Владелец форума не найден.
func NewForumCreateNotFound ¶
func NewForumCreateNotFound() *ForumCreateNotFound
NewForumCreateNotFound creates a ForumCreateNotFound with default headers values
func (*ForumCreateNotFound) Error ¶
func (o *ForumCreateNotFound) Error() string
type ForumCreateParams ¶
type ForumCreateParams struct { /*Forum Данные форума. */ Forum *models.Forum Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ForumCreateParams contains all the parameters to send to the API endpoint for the forum create operation typically these are written to a http.Request
func NewForumCreateParams ¶
func NewForumCreateParams() *ForumCreateParams
NewForumCreateParams creates a new ForumCreateParams object with the default values initialized.
func NewForumCreateParamsWithContext ¶
func NewForumCreateParamsWithContext(ctx context.Context) *ForumCreateParams
NewForumCreateParamsWithContext creates a new ForumCreateParams object with the default values initialized, and the ability to set a context for a request
func NewForumCreateParamsWithHTTPClient ¶
func NewForumCreateParamsWithHTTPClient(client *http.Client) *ForumCreateParams
NewForumCreateParamsWithHTTPClient creates a new ForumCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewForumCreateParamsWithTimeout ¶
func NewForumCreateParamsWithTimeout(timeout time.Duration) *ForumCreateParams
NewForumCreateParamsWithTimeout creates a new ForumCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*ForumCreateParams) SetContext ¶
func (o *ForumCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the forum create params
func (*ForumCreateParams) SetForum ¶
func (o *ForumCreateParams) SetForum(forum *models.Forum)
SetForum adds the forum to the forum create params
func (*ForumCreateParams) SetHTTPClient ¶
func (o *ForumCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the forum create params
func (*ForumCreateParams) SetTimeout ¶
func (o *ForumCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the forum create params
func (*ForumCreateParams) WithContext ¶
func (o *ForumCreateParams) WithContext(ctx context.Context) *ForumCreateParams
WithContext adds the context to the forum create params
func (*ForumCreateParams) WithForum ¶
func (o *ForumCreateParams) WithForum(forum *models.Forum) *ForumCreateParams
WithForum adds the forum to the forum create params
func (*ForumCreateParams) WithHTTPClient ¶
func (o *ForumCreateParams) WithHTTPClient(client *http.Client) *ForumCreateParams
WithHTTPClient adds the HTTPClient to the forum create params
func (*ForumCreateParams) WithTimeout ¶
func (o *ForumCreateParams) WithTimeout(timeout time.Duration) *ForumCreateParams
WithTimeout adds the timeout to the forum create params
func (*ForumCreateParams) WriteToRequest ¶
func (o *ForumCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ForumCreateReader ¶
type ForumCreateReader struct {
// contains filtered or unexported fields
}
ForumCreateReader is a Reader for the ForumCreate structure.
func (*ForumCreateReader) ReadResponse ¶
func (o *ForumCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ForumGetOneNotFound ¶
ForumGetOneNotFound handles this case with default header values.
Форум отсутсвует в системе.
func NewForumGetOneNotFound ¶
func NewForumGetOneNotFound() *ForumGetOneNotFound
NewForumGetOneNotFound creates a ForumGetOneNotFound with default headers values
func (*ForumGetOneNotFound) Error ¶
func (o *ForumGetOneNotFound) Error() string
type ForumGetOneOK ¶
ForumGetOneOK handles this case with default header values.
Информация о форуме.
func NewForumGetOneOK ¶
func NewForumGetOneOK() *ForumGetOneOK
NewForumGetOneOK creates a ForumGetOneOK with default headers values
func (*ForumGetOneOK) Error ¶
func (o *ForumGetOneOK) Error() string
type ForumGetOneParams ¶
type ForumGetOneParams struct { /*Slug Идентификатор форума. */ Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ForumGetOneParams contains all the parameters to send to the API endpoint for the forum get one operation typically these are written to a http.Request
func NewForumGetOneParams ¶
func NewForumGetOneParams() *ForumGetOneParams
NewForumGetOneParams creates a new ForumGetOneParams object with the default values initialized.
func NewForumGetOneParamsWithContext ¶
func NewForumGetOneParamsWithContext(ctx context.Context) *ForumGetOneParams
NewForumGetOneParamsWithContext creates a new ForumGetOneParams object with the default values initialized, and the ability to set a context for a request
func NewForumGetOneParamsWithHTTPClient ¶
func NewForumGetOneParamsWithHTTPClient(client *http.Client) *ForumGetOneParams
NewForumGetOneParamsWithHTTPClient creates a new ForumGetOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewForumGetOneParamsWithTimeout ¶
func NewForumGetOneParamsWithTimeout(timeout time.Duration) *ForumGetOneParams
NewForumGetOneParamsWithTimeout creates a new ForumGetOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*ForumGetOneParams) SetContext ¶
func (o *ForumGetOneParams) SetContext(ctx context.Context)
SetContext adds the context to the forum get one params
func (*ForumGetOneParams) SetHTTPClient ¶
func (o *ForumGetOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the forum get one params
func (*ForumGetOneParams) SetSlug ¶
func (o *ForumGetOneParams) SetSlug(slug string)
SetSlug adds the slug to the forum get one params
func (*ForumGetOneParams) SetTimeout ¶
func (o *ForumGetOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the forum get one params
func (*ForumGetOneParams) WithContext ¶
func (o *ForumGetOneParams) WithContext(ctx context.Context) *ForumGetOneParams
WithContext adds the context to the forum get one params
func (*ForumGetOneParams) WithHTTPClient ¶
func (o *ForumGetOneParams) WithHTTPClient(client *http.Client) *ForumGetOneParams
WithHTTPClient adds the HTTPClient to the forum get one params
func (*ForumGetOneParams) WithSlug ¶
func (o *ForumGetOneParams) WithSlug(slug string) *ForumGetOneParams
WithSlug adds the slug to the forum get one params
func (*ForumGetOneParams) WithTimeout ¶
func (o *ForumGetOneParams) WithTimeout(timeout time.Duration) *ForumGetOneParams
WithTimeout adds the timeout to the forum get one params
func (*ForumGetOneParams) WriteToRequest ¶
func (o *ForumGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ForumGetOneReader ¶
type ForumGetOneReader struct {
// contains filtered or unexported fields
}
ForumGetOneReader is a Reader for the ForumGetOne structure.
func (*ForumGetOneReader) ReadResponse ¶
func (o *ForumGetOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ForumGetThreadsNotFound ¶
ForumGetThreadsNotFound handles this case with default header values.
Форум отсутсвует в системе.
func NewForumGetThreadsNotFound ¶
func NewForumGetThreadsNotFound() *ForumGetThreadsNotFound
NewForumGetThreadsNotFound creates a ForumGetThreadsNotFound with default headers values
func (*ForumGetThreadsNotFound) Error ¶
func (o *ForumGetThreadsNotFound) Error() string
type ForumGetThreadsOK ¶
ForumGetThreadsOK handles this case with default header values.
Информация о ветках обсуждения на форуме.
func NewForumGetThreadsOK ¶
func NewForumGetThreadsOK() *ForumGetThreadsOK
NewForumGetThreadsOK creates a ForumGetThreadsOK with default headers values
func (*ForumGetThreadsOK) Error ¶
func (o *ForumGetThreadsOK) Error() string
type ForumGetThreadsParams ¶
type ForumGetThreadsParams struct { /*Desc Флаг сортировки по убыванию. */ Desc *bool /*Limit Максимальное кол-во возвращаемых записей. */ Limit *int32 /*Since Дата создания ветви обсуждения, с которой будут выводиться записи (ветвь обсуждения с указанной датой попадает в результат выборки). */ Since *strfmt.DateTime /*Slug Идентификатор форума. */ Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ForumGetThreadsParams contains all the parameters to send to the API endpoint for the forum get threads operation typically these are written to a http.Request
func NewForumGetThreadsParams ¶
func NewForumGetThreadsParams() *ForumGetThreadsParams
NewForumGetThreadsParams creates a new ForumGetThreadsParams object with the default values initialized.
func NewForumGetThreadsParamsWithContext ¶
func NewForumGetThreadsParamsWithContext(ctx context.Context) *ForumGetThreadsParams
NewForumGetThreadsParamsWithContext creates a new ForumGetThreadsParams object with the default values initialized, and the ability to set a context for a request
func NewForumGetThreadsParamsWithHTTPClient ¶
func NewForumGetThreadsParamsWithHTTPClient(client *http.Client) *ForumGetThreadsParams
NewForumGetThreadsParamsWithHTTPClient creates a new ForumGetThreadsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewForumGetThreadsParamsWithTimeout ¶
func NewForumGetThreadsParamsWithTimeout(timeout time.Duration) *ForumGetThreadsParams
NewForumGetThreadsParamsWithTimeout creates a new ForumGetThreadsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ForumGetThreadsParams) SetContext ¶
func (o *ForumGetThreadsParams) SetContext(ctx context.Context)
SetContext adds the context to the forum get threads params
func (*ForumGetThreadsParams) SetDesc ¶
func (o *ForumGetThreadsParams) SetDesc(desc *bool)
SetDesc adds the desc to the forum get threads params
func (*ForumGetThreadsParams) SetHTTPClient ¶
func (o *ForumGetThreadsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the forum get threads params
func (*ForumGetThreadsParams) SetLimit ¶
func (o *ForumGetThreadsParams) SetLimit(limit *int32)
SetLimit adds the limit to the forum get threads params
func (*ForumGetThreadsParams) SetSince ¶
func (o *ForumGetThreadsParams) SetSince(since *strfmt.DateTime)
SetSince adds the since to the forum get threads params
func (*ForumGetThreadsParams) SetSlug ¶
func (o *ForumGetThreadsParams) SetSlug(slug string)
SetSlug adds the slug to the forum get threads params
func (*ForumGetThreadsParams) SetTimeout ¶
func (o *ForumGetThreadsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the forum get threads params
func (*ForumGetThreadsParams) WithContext ¶
func (o *ForumGetThreadsParams) WithContext(ctx context.Context) *ForumGetThreadsParams
WithContext adds the context to the forum get threads params
func (*ForumGetThreadsParams) WithDesc ¶
func (o *ForumGetThreadsParams) WithDesc(desc *bool) *ForumGetThreadsParams
WithDesc adds the desc to the forum get threads params
func (*ForumGetThreadsParams) WithHTTPClient ¶
func (o *ForumGetThreadsParams) WithHTTPClient(client *http.Client) *ForumGetThreadsParams
WithHTTPClient adds the HTTPClient to the forum get threads params
func (*ForumGetThreadsParams) WithLimit ¶
func (o *ForumGetThreadsParams) WithLimit(limit *int32) *ForumGetThreadsParams
WithLimit adds the limit to the forum get threads params
func (*ForumGetThreadsParams) WithSince ¶
func (o *ForumGetThreadsParams) WithSince(since *strfmt.DateTime) *ForumGetThreadsParams
WithSince adds the since to the forum get threads params
func (*ForumGetThreadsParams) WithSlug ¶
func (o *ForumGetThreadsParams) WithSlug(slug string) *ForumGetThreadsParams
WithSlug adds the slug to the forum get threads params
func (*ForumGetThreadsParams) WithTimeout ¶
func (o *ForumGetThreadsParams) WithTimeout(timeout time.Duration) *ForumGetThreadsParams
WithTimeout adds the timeout to the forum get threads params
func (*ForumGetThreadsParams) WriteToRequest ¶
func (o *ForumGetThreadsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ForumGetThreadsReader ¶
type ForumGetThreadsReader struct {
// contains filtered or unexported fields
}
ForumGetThreadsReader is a Reader for the ForumGetThreads structure.
func (*ForumGetThreadsReader) ReadResponse ¶
func (o *ForumGetThreadsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ForumGetUsersNotFound ¶
ForumGetUsersNotFound handles this case with default header values.
Форум отсутсвует в системе.
func NewForumGetUsersNotFound ¶
func NewForumGetUsersNotFound() *ForumGetUsersNotFound
NewForumGetUsersNotFound creates a ForumGetUsersNotFound with default headers values
func (*ForumGetUsersNotFound) Error ¶
func (o *ForumGetUsersNotFound) Error() string
type ForumGetUsersOK ¶
ForumGetUsersOK handles this case with default header values.
Информация о пользователях форума.
func NewForumGetUsersOK ¶
func NewForumGetUsersOK() *ForumGetUsersOK
NewForumGetUsersOK creates a ForumGetUsersOK with default headers values
func (*ForumGetUsersOK) Error ¶
func (o *ForumGetUsersOK) Error() string
type ForumGetUsersParams ¶
type ForumGetUsersParams struct { /*Desc Флаг сортировки по убыванию. */ Desc *bool /*Limit Максимальное кол-во возвращаемых записей. */ Limit *int32 /*Since Идентификатор пользователя, с которого будут выводиться пользоватли (пользователь с данным идентификатором в результат не попадает). */ Since *string /*Slug Идентификатор форума. */ Slug string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ForumGetUsersParams contains all the parameters to send to the API endpoint for the forum get users operation typically these are written to a http.Request
func NewForumGetUsersParams ¶
func NewForumGetUsersParams() *ForumGetUsersParams
NewForumGetUsersParams creates a new ForumGetUsersParams object with the default values initialized.
func NewForumGetUsersParamsWithContext ¶
func NewForumGetUsersParamsWithContext(ctx context.Context) *ForumGetUsersParams
NewForumGetUsersParamsWithContext creates a new ForumGetUsersParams object with the default values initialized, and the ability to set a context for a request
func NewForumGetUsersParamsWithHTTPClient ¶
func NewForumGetUsersParamsWithHTTPClient(client *http.Client) *ForumGetUsersParams
NewForumGetUsersParamsWithHTTPClient creates a new ForumGetUsersParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewForumGetUsersParamsWithTimeout ¶
func NewForumGetUsersParamsWithTimeout(timeout time.Duration) *ForumGetUsersParams
NewForumGetUsersParamsWithTimeout creates a new ForumGetUsersParams object with the default values initialized, and the ability to set a timeout on a request
func (*ForumGetUsersParams) SetContext ¶
func (o *ForumGetUsersParams) SetContext(ctx context.Context)
SetContext adds the context to the forum get users params
func (*ForumGetUsersParams) SetDesc ¶
func (o *ForumGetUsersParams) SetDesc(desc *bool)
SetDesc adds the desc to the forum get users params
func (*ForumGetUsersParams) SetHTTPClient ¶
func (o *ForumGetUsersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the forum get users params
func (*ForumGetUsersParams) SetLimit ¶
func (o *ForumGetUsersParams) SetLimit(limit *int32)
SetLimit adds the limit to the forum get users params
func (*ForumGetUsersParams) SetSince ¶
func (o *ForumGetUsersParams) SetSince(since *string)
SetSince adds the since to the forum get users params
func (*ForumGetUsersParams) SetSlug ¶
func (o *ForumGetUsersParams) SetSlug(slug string)
SetSlug adds the slug to the forum get users params
func (*ForumGetUsersParams) SetTimeout ¶
func (o *ForumGetUsersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the forum get users params
func (*ForumGetUsersParams) WithContext ¶
func (o *ForumGetUsersParams) WithContext(ctx context.Context) *ForumGetUsersParams
WithContext adds the context to the forum get users params
func (*ForumGetUsersParams) WithDesc ¶
func (o *ForumGetUsersParams) WithDesc(desc *bool) *ForumGetUsersParams
WithDesc adds the desc to the forum get users params
func (*ForumGetUsersParams) WithHTTPClient ¶
func (o *ForumGetUsersParams) WithHTTPClient(client *http.Client) *ForumGetUsersParams
WithHTTPClient adds the HTTPClient to the forum get users params
func (*ForumGetUsersParams) WithLimit ¶
func (o *ForumGetUsersParams) WithLimit(limit *int32) *ForumGetUsersParams
WithLimit adds the limit to the forum get users params
func (*ForumGetUsersParams) WithSince ¶
func (o *ForumGetUsersParams) WithSince(since *string) *ForumGetUsersParams
WithSince adds the since to the forum get users params
func (*ForumGetUsersParams) WithSlug ¶
func (o *ForumGetUsersParams) WithSlug(slug string) *ForumGetUsersParams
WithSlug adds the slug to the forum get users params
func (*ForumGetUsersParams) WithTimeout ¶
func (o *ForumGetUsersParams) WithTimeout(timeout time.Duration) *ForumGetUsersParams
WithTimeout adds the timeout to the forum get users params
func (*ForumGetUsersParams) WriteToRequest ¶
func (o *ForumGetUsersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ForumGetUsersReader ¶
type ForumGetUsersReader struct {
// contains filtered or unexported fields
}
ForumGetUsersReader is a Reader for the ForumGetUsers structure.
func (*ForumGetUsersReader) ReadResponse ¶
func (o *ForumGetUsersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostGetOneNotFound ¶
PostGetOneNotFound handles this case with default header values.
Ветка обсуждения отсутсвует в форуме.
func NewPostGetOneNotFound ¶
func NewPostGetOneNotFound() *PostGetOneNotFound
NewPostGetOneNotFound creates a PostGetOneNotFound with default headers values
func (*PostGetOneNotFound) Error ¶
func (o *PostGetOneNotFound) Error() string
type PostGetOneOK ¶
PostGetOneOK handles this case with default header values.
Информация о ветке обсуждения.
func NewPostGetOneOK ¶
func NewPostGetOneOK() *PostGetOneOK
NewPostGetOneOK creates a PostGetOneOK with default headers values
func (*PostGetOneOK) Error ¶
func (o *PostGetOneOK) Error() string
type PostGetOneParams ¶
type PostGetOneParams struct { /*ID Идентификатор сообщения. */ ID int64 /*Related Включение полной информации о соответвующем объекте сообщения. Если тип объекта не указан, то полная информация об этих объектах не передаётся. */ Related []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostGetOneParams contains all the parameters to send to the API endpoint for the post get one operation typically these are written to a http.Request
func NewPostGetOneParams ¶
func NewPostGetOneParams() *PostGetOneParams
NewPostGetOneParams creates a new PostGetOneParams object with the default values initialized.
func NewPostGetOneParamsWithContext ¶
func NewPostGetOneParamsWithContext(ctx context.Context) *PostGetOneParams
NewPostGetOneParamsWithContext creates a new PostGetOneParams object with the default values initialized, and the ability to set a context for a request
func NewPostGetOneParamsWithHTTPClient ¶
func NewPostGetOneParamsWithHTTPClient(client *http.Client) *PostGetOneParams
NewPostGetOneParamsWithHTTPClient creates a new PostGetOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostGetOneParamsWithTimeout ¶
func NewPostGetOneParamsWithTimeout(timeout time.Duration) *PostGetOneParams
NewPostGetOneParamsWithTimeout creates a new PostGetOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostGetOneParams) SetContext ¶
func (o *PostGetOneParams) SetContext(ctx context.Context)
SetContext adds the context to the post get one params
func (*PostGetOneParams) SetHTTPClient ¶
func (o *PostGetOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post get one params
func (*PostGetOneParams) SetID ¶
func (o *PostGetOneParams) SetID(id int64)
SetID adds the id to the post get one params
func (*PostGetOneParams) SetRelated ¶
func (o *PostGetOneParams) SetRelated(related []string)
SetRelated adds the related to the post get one params
func (*PostGetOneParams) SetTimeout ¶
func (o *PostGetOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post get one params
func (*PostGetOneParams) WithContext ¶
func (o *PostGetOneParams) WithContext(ctx context.Context) *PostGetOneParams
WithContext adds the context to the post get one params
func (*PostGetOneParams) WithHTTPClient ¶
func (o *PostGetOneParams) WithHTTPClient(client *http.Client) *PostGetOneParams
WithHTTPClient adds the HTTPClient to the post get one params
func (*PostGetOneParams) WithID ¶
func (o *PostGetOneParams) WithID(id int64) *PostGetOneParams
WithID adds the id to the post get one params
func (*PostGetOneParams) WithRelated ¶
func (o *PostGetOneParams) WithRelated(related []string) *PostGetOneParams
WithRelated adds the related to the post get one params
func (*PostGetOneParams) WithTimeout ¶
func (o *PostGetOneParams) WithTimeout(timeout time.Duration) *PostGetOneParams
WithTimeout adds the timeout to the post get one params
func (*PostGetOneParams) WriteToRequest ¶
func (o *PostGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostGetOneReader ¶
type PostGetOneReader struct {
// contains filtered or unexported fields
}
PostGetOneReader is a Reader for the PostGetOne structure.
func (*PostGetOneReader) ReadResponse ¶
func (o *PostGetOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostUpdateNotFound ¶
PostUpdateNotFound handles this case with default header values.
Сообщение отсутсвует в форуме.
func NewPostUpdateNotFound ¶
func NewPostUpdateNotFound() *PostUpdateNotFound
NewPostUpdateNotFound creates a PostUpdateNotFound with default headers values
func (*PostUpdateNotFound) Error ¶
func (o *PostUpdateNotFound) Error() string
type PostUpdateOK ¶
PostUpdateOK handles this case with default header values.
Информация о сообщении.
func NewPostUpdateOK ¶
func NewPostUpdateOK() *PostUpdateOK
NewPostUpdateOK creates a PostUpdateOK with default headers values
func (*PostUpdateOK) Error ¶
func (o *PostUpdateOK) Error() string
type PostUpdateParams ¶
type PostUpdateParams struct { /*ID Идентификатор сообщения. */ ID int64 /*Post Изменения сообщения. */ Post *models.PostUpdate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostUpdateParams contains all the parameters to send to the API endpoint for the post update operation typically these are written to a http.Request
func NewPostUpdateParams ¶
func NewPostUpdateParams() *PostUpdateParams
NewPostUpdateParams creates a new PostUpdateParams object with the default values initialized.
func NewPostUpdateParamsWithContext ¶
func NewPostUpdateParamsWithContext(ctx context.Context) *PostUpdateParams
NewPostUpdateParamsWithContext creates a new PostUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewPostUpdateParamsWithHTTPClient ¶
func NewPostUpdateParamsWithHTTPClient(client *http.Client) *PostUpdateParams
NewPostUpdateParamsWithHTTPClient creates a new PostUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostUpdateParamsWithTimeout ¶
func NewPostUpdateParamsWithTimeout(timeout time.Duration) *PostUpdateParams
NewPostUpdateParamsWithTimeout creates a new PostUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostUpdateParams) SetContext ¶
func (o *PostUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the post update params
func (*PostUpdateParams) SetHTTPClient ¶
func (o *PostUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post update params
func (*PostUpdateParams) SetID ¶
func (o *PostUpdateParams) SetID(id int64)
SetID adds the id to the post update params
func (*PostUpdateParams) SetPost ¶
func (o *PostUpdateParams) SetPost(post *models.PostUpdate)
SetPost adds the post to the post update params
func (*PostUpdateParams) SetTimeout ¶
func (o *PostUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post update params
func (*PostUpdateParams) WithContext ¶
func (o *PostUpdateParams) WithContext(ctx context.Context) *PostUpdateParams
WithContext adds the context to the post update params
func (*PostUpdateParams) WithHTTPClient ¶
func (o *PostUpdateParams) WithHTTPClient(client *http.Client) *PostUpdateParams
WithHTTPClient adds the HTTPClient to the post update params
func (*PostUpdateParams) WithID ¶
func (o *PostUpdateParams) WithID(id int64) *PostUpdateParams
WithID adds the id to the post update params
func (*PostUpdateParams) WithPost ¶
func (o *PostUpdateParams) WithPost(post *models.PostUpdate) *PostUpdateParams
WithPost adds the post to the post update params
func (*PostUpdateParams) WithTimeout ¶
func (o *PostUpdateParams) WithTimeout(timeout time.Duration) *PostUpdateParams
WithTimeout adds the timeout to the post update params
func (*PostUpdateParams) WriteToRequest ¶
func (o *PostUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostUpdateReader ¶
type PostUpdateReader struct {
// contains filtered or unexported fields
}
PostUpdateReader is a Reader for the PostUpdate structure.
func (*PostUpdateReader) ReadResponse ¶
func (o *PostUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostsCreateConflict ¶ added in v0.1.0
PostsCreateConflict handles this case with default header values.
Хотя бы один родительский пост отсутсвует в текущей ветке обсуждения.
func NewPostsCreateConflict ¶ added in v0.1.0
func NewPostsCreateConflict() *PostsCreateConflict
NewPostsCreateConflict creates a PostsCreateConflict with default headers values
func (*PostsCreateConflict) Error ¶ added in v0.1.0
func (o *PostsCreateConflict) Error() string
type PostsCreateCreated ¶ added in v0.1.0
PostsCreateCreated handles this case with default header values.
Посты успешно созданы. Возвращает данные созданных постов в том же порядке, в котором их передали на вход метода.
func NewPostsCreateCreated ¶ added in v0.1.0
func NewPostsCreateCreated() *PostsCreateCreated
NewPostsCreateCreated creates a PostsCreateCreated with default headers values
func (*PostsCreateCreated) Error ¶ added in v0.1.0
func (o *PostsCreateCreated) Error() string
type PostsCreateNotFound ¶ added in v0.1.0
PostsCreateNotFound handles this case with default header values.
Ветка обсуждения отсутствует в базе данных.
func NewPostsCreateNotFound ¶ added in v0.1.0
func NewPostsCreateNotFound() *PostsCreateNotFound
NewPostsCreateNotFound creates a PostsCreateNotFound with default headers values
func (*PostsCreateNotFound) Error ¶ added in v0.1.0
func (o *PostsCreateNotFound) Error() string
type PostsCreateParams ¶ added in v0.1.0
type PostsCreateParams struct { /*Posts Список создаваемых постов. */ Posts models.Posts /*SlugOrID Идентификатор ветки обсуждения. */ SlugOrID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostsCreateParams contains all the parameters to send to the API endpoint for the posts create operation typically these are written to a http.Request
func NewPostsCreateParams ¶ added in v0.1.0
func NewPostsCreateParams() *PostsCreateParams
NewPostsCreateParams creates a new PostsCreateParams object with the default values initialized.
func NewPostsCreateParamsWithContext ¶ added in v0.1.0
func NewPostsCreateParamsWithContext(ctx context.Context) *PostsCreateParams
NewPostsCreateParamsWithContext creates a new PostsCreateParams object with the default values initialized, and the ability to set a context for a request
func NewPostsCreateParamsWithHTTPClient ¶ added in v0.1.0
func NewPostsCreateParamsWithHTTPClient(client *http.Client) *PostsCreateParams
NewPostsCreateParamsWithHTTPClient creates a new PostsCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewPostsCreateParamsWithTimeout ¶ added in v0.1.0
func NewPostsCreateParamsWithTimeout(timeout time.Duration) *PostsCreateParams
NewPostsCreateParamsWithTimeout creates a new PostsCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*PostsCreateParams) SetContext ¶ added in v0.1.0
func (o *PostsCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the posts create params
func (*PostsCreateParams) SetHTTPClient ¶ added in v0.1.0
func (o *PostsCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the posts create params
func (*PostsCreateParams) SetPosts ¶ added in v0.1.0
func (o *PostsCreateParams) SetPosts(posts models.Posts)
SetPosts adds the posts to the posts create params
func (*PostsCreateParams) SetSlugOrID ¶ added in v0.1.0
func (o *PostsCreateParams) SetSlugOrID(slugOrID string)
SetSlugOrID adds the slugOrId to the posts create params
func (*PostsCreateParams) SetTimeout ¶ added in v0.1.0
func (o *PostsCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the posts create params
func (*PostsCreateParams) WithContext ¶ added in v0.1.0
func (o *PostsCreateParams) WithContext(ctx context.Context) *PostsCreateParams
WithContext adds the context to the posts create params
func (*PostsCreateParams) WithHTTPClient ¶ added in v0.1.0
func (o *PostsCreateParams) WithHTTPClient(client *http.Client) *PostsCreateParams
WithHTTPClient adds the HTTPClient to the posts create params
func (*PostsCreateParams) WithPosts ¶ added in v0.1.0
func (o *PostsCreateParams) WithPosts(posts models.Posts) *PostsCreateParams
WithPosts adds the posts to the posts create params
func (*PostsCreateParams) WithSlugOrID ¶ added in v0.1.0
func (o *PostsCreateParams) WithSlugOrID(slugOrID string) *PostsCreateParams
WithSlugOrID adds the slugOrID to the posts create params
func (*PostsCreateParams) WithTimeout ¶ added in v0.1.0
func (o *PostsCreateParams) WithTimeout(timeout time.Duration) *PostsCreateParams
WithTimeout adds the timeout to the posts create params
func (*PostsCreateParams) WriteToRequest ¶ added in v0.1.0
func (o *PostsCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostsCreateReader ¶ added in v0.1.0
type PostsCreateReader struct {
// contains filtered or unexported fields
}
PostsCreateReader is a Reader for the PostsCreate structure.
func (*PostsCreateReader) ReadResponse ¶ added in v0.1.0
func (o *PostsCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type StatusOK ¶
StatusOK handles this case with default header values.
Кол-во записей в базе данных, включая помеченные как "удалённые".
func NewStatusOK ¶
func NewStatusOK() *StatusOK
NewStatusOK creates a StatusOK with default headers values
type StatusParams ¶
type StatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
StatusParams contains all the parameters to send to the API endpoint for the status operation typically these are written to a http.Request
func NewStatusParams ¶
func NewStatusParams() *StatusParams
NewStatusParams creates a new StatusParams object with the default values initialized.
func NewStatusParamsWithContext ¶
func NewStatusParamsWithContext(ctx context.Context) *StatusParams
NewStatusParamsWithContext creates a new StatusParams object with the default values initialized, and the ability to set a context for a request
func NewStatusParamsWithHTTPClient ¶
func NewStatusParamsWithHTTPClient(client *http.Client) *StatusParams
NewStatusParamsWithHTTPClient creates a new StatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewStatusParamsWithTimeout ¶
func NewStatusParamsWithTimeout(timeout time.Duration) *StatusParams
NewStatusParamsWithTimeout creates a new StatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*StatusParams) SetContext ¶
func (o *StatusParams) SetContext(ctx context.Context)
SetContext adds the context to the status params
func (*StatusParams) SetHTTPClient ¶
func (o *StatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the status params
func (*StatusParams) SetTimeout ¶
func (o *StatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the status params
func (*StatusParams) WithContext ¶
func (o *StatusParams) WithContext(ctx context.Context) *StatusParams
WithContext adds the context to the status params
func (*StatusParams) WithHTTPClient ¶
func (o *StatusParams) WithHTTPClient(client *http.Client) *StatusParams
WithHTTPClient adds the HTTPClient to the status params
func (*StatusParams) WithTimeout ¶
func (o *StatusParams) WithTimeout(timeout time.Duration) *StatusParams
WithTimeout adds the timeout to the status params
func (*StatusParams) WriteToRequest ¶
func (o *StatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type StatusReader ¶
type StatusReader struct {
// contains filtered or unexported fields
}
StatusReader is a Reader for the Status structure.
func (*StatusReader) ReadResponse ¶
func (o *StatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ThreadCreateConflict ¶
ThreadCreateConflict handles this case with default header values.
Ветка обсуждения уже присутсвует в базе данных. Возвращает данные ранее созданной ветки обсуждения.
func NewThreadCreateConflict ¶
func NewThreadCreateConflict() *ThreadCreateConflict
NewThreadCreateConflict creates a ThreadCreateConflict with default headers values
func (*ThreadCreateConflict) Error ¶
func (o *ThreadCreateConflict) Error() string
type ThreadCreateCreated ¶
ThreadCreateCreated handles this case with default header values.
Ветка обсуждения успешно создана. Возвращает данные созданной ветки обсуждения.
func NewThreadCreateCreated ¶
func NewThreadCreateCreated() *ThreadCreateCreated
NewThreadCreateCreated creates a ThreadCreateCreated with default headers values
func (*ThreadCreateCreated) Error ¶
func (o *ThreadCreateCreated) Error() string
type ThreadCreateNotFound ¶
ThreadCreateNotFound handles this case with default header values.
Автор ветки или форум не найдены.
func NewThreadCreateNotFound ¶
func NewThreadCreateNotFound() *ThreadCreateNotFound
NewThreadCreateNotFound creates a ThreadCreateNotFound with default headers values
func (*ThreadCreateNotFound) Error ¶
func (o *ThreadCreateNotFound) Error() string
type ThreadCreateParams ¶
type ThreadCreateParams struct { /*Slug Идентификатор форума. */ Slug string /*Thread Данные ветки обсуждения. */ Thread *models.Thread Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ThreadCreateParams contains all the parameters to send to the API endpoint for the thread create operation typically these are written to a http.Request
func NewThreadCreateParams ¶
func NewThreadCreateParams() *ThreadCreateParams
NewThreadCreateParams creates a new ThreadCreateParams object with the default values initialized.
func NewThreadCreateParamsWithContext ¶
func NewThreadCreateParamsWithContext(ctx context.Context) *ThreadCreateParams
NewThreadCreateParamsWithContext creates a new ThreadCreateParams object with the default values initialized, and the ability to set a context for a request
func NewThreadCreateParamsWithHTTPClient ¶
func NewThreadCreateParamsWithHTTPClient(client *http.Client) *ThreadCreateParams
NewThreadCreateParamsWithHTTPClient creates a new ThreadCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewThreadCreateParamsWithTimeout ¶
func NewThreadCreateParamsWithTimeout(timeout time.Duration) *ThreadCreateParams
NewThreadCreateParamsWithTimeout creates a new ThreadCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*ThreadCreateParams) SetContext ¶
func (o *ThreadCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the thread create params
func (*ThreadCreateParams) SetHTTPClient ¶
func (o *ThreadCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the thread create params
func (*ThreadCreateParams) SetSlug ¶
func (o *ThreadCreateParams) SetSlug(slug string)
SetSlug adds the slug to the thread create params
func (*ThreadCreateParams) SetThread ¶
func (o *ThreadCreateParams) SetThread(thread *models.Thread)
SetThread adds the thread to the thread create params
func (*ThreadCreateParams) SetTimeout ¶
func (o *ThreadCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the thread create params
func (*ThreadCreateParams) WithContext ¶
func (o *ThreadCreateParams) WithContext(ctx context.Context) *ThreadCreateParams
WithContext adds the context to the thread create params
func (*ThreadCreateParams) WithHTTPClient ¶
func (o *ThreadCreateParams) WithHTTPClient(client *http.Client) *ThreadCreateParams
WithHTTPClient adds the HTTPClient to the thread create params
func (*ThreadCreateParams) WithSlug ¶
func (o *ThreadCreateParams) WithSlug(slug string) *ThreadCreateParams
WithSlug adds the slug to the thread create params
func (*ThreadCreateParams) WithThread ¶
func (o *ThreadCreateParams) WithThread(thread *models.Thread) *ThreadCreateParams
WithThread adds the thread to the thread create params
func (*ThreadCreateParams) WithTimeout ¶
func (o *ThreadCreateParams) WithTimeout(timeout time.Duration) *ThreadCreateParams
WithTimeout adds the timeout to the thread create params
func (*ThreadCreateParams) WriteToRequest ¶
func (o *ThreadCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ThreadCreateReader ¶
type ThreadCreateReader struct {
// contains filtered or unexported fields
}
ThreadCreateReader is a Reader for the ThreadCreate structure.
func (*ThreadCreateReader) ReadResponse ¶
func (o *ThreadCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ThreadGetOneNotFound ¶
ThreadGetOneNotFound handles this case with default header values.
Ветка обсуждения отсутсвует в форуме.
func NewThreadGetOneNotFound ¶
func NewThreadGetOneNotFound() *ThreadGetOneNotFound
NewThreadGetOneNotFound creates a ThreadGetOneNotFound with default headers values
func (*ThreadGetOneNotFound) Error ¶
func (o *ThreadGetOneNotFound) Error() string
type ThreadGetOneOK ¶
ThreadGetOneOK handles this case with default header values.
Информация о ветке обсуждения.
func NewThreadGetOneOK ¶
func NewThreadGetOneOK() *ThreadGetOneOK
NewThreadGetOneOK creates a ThreadGetOneOK with default headers values
func (*ThreadGetOneOK) Error ¶
func (o *ThreadGetOneOK) Error() string
type ThreadGetOneParams ¶
type ThreadGetOneParams struct { /*SlugOrID Идентификатор ветки обсуждения. */ SlugOrID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ThreadGetOneParams contains all the parameters to send to the API endpoint for the thread get one operation typically these are written to a http.Request
func NewThreadGetOneParams ¶
func NewThreadGetOneParams() *ThreadGetOneParams
NewThreadGetOneParams creates a new ThreadGetOneParams object with the default values initialized.
func NewThreadGetOneParamsWithContext ¶
func NewThreadGetOneParamsWithContext(ctx context.Context) *ThreadGetOneParams
NewThreadGetOneParamsWithContext creates a new ThreadGetOneParams object with the default values initialized, and the ability to set a context for a request
func NewThreadGetOneParamsWithHTTPClient ¶
func NewThreadGetOneParamsWithHTTPClient(client *http.Client) *ThreadGetOneParams
NewThreadGetOneParamsWithHTTPClient creates a new ThreadGetOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewThreadGetOneParamsWithTimeout ¶
func NewThreadGetOneParamsWithTimeout(timeout time.Duration) *ThreadGetOneParams
NewThreadGetOneParamsWithTimeout creates a new ThreadGetOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*ThreadGetOneParams) SetContext ¶
func (o *ThreadGetOneParams) SetContext(ctx context.Context)
SetContext adds the context to the thread get one params
func (*ThreadGetOneParams) SetHTTPClient ¶
func (o *ThreadGetOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the thread get one params
func (*ThreadGetOneParams) SetSlugOrID ¶
func (o *ThreadGetOneParams) SetSlugOrID(slugOrID string)
SetSlugOrID adds the slugOrId to the thread get one params
func (*ThreadGetOneParams) SetTimeout ¶
func (o *ThreadGetOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the thread get one params
func (*ThreadGetOneParams) WithContext ¶
func (o *ThreadGetOneParams) WithContext(ctx context.Context) *ThreadGetOneParams
WithContext adds the context to the thread get one params
func (*ThreadGetOneParams) WithHTTPClient ¶
func (o *ThreadGetOneParams) WithHTTPClient(client *http.Client) *ThreadGetOneParams
WithHTTPClient adds the HTTPClient to the thread get one params
func (*ThreadGetOneParams) WithSlugOrID ¶
func (o *ThreadGetOneParams) WithSlugOrID(slugOrID string) *ThreadGetOneParams
WithSlugOrID adds the slugOrID to the thread get one params
func (*ThreadGetOneParams) WithTimeout ¶
func (o *ThreadGetOneParams) WithTimeout(timeout time.Duration) *ThreadGetOneParams
WithTimeout adds the timeout to the thread get one params
func (*ThreadGetOneParams) WriteToRequest ¶
func (o *ThreadGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ThreadGetOneReader ¶
type ThreadGetOneReader struct {
// contains filtered or unexported fields
}
ThreadGetOneReader is a Reader for the ThreadGetOne structure.
func (*ThreadGetOneReader) ReadResponse ¶
func (o *ThreadGetOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ThreadGetPostsNotFound ¶
ThreadGetPostsNotFound handles this case with default header values.
Ветка обсуждения отсутсвует в форуме.
func NewThreadGetPostsNotFound ¶
func NewThreadGetPostsNotFound() *ThreadGetPostsNotFound
NewThreadGetPostsNotFound creates a ThreadGetPostsNotFound with default headers values
func (*ThreadGetPostsNotFound) Error ¶
func (o *ThreadGetPostsNotFound) Error() string
type ThreadGetPostsOK ¶
ThreadGetPostsOK handles this case with default header values.
Информация о сообщениях форума.
func NewThreadGetPostsOK ¶
func NewThreadGetPostsOK() *ThreadGetPostsOK
NewThreadGetPostsOK creates a ThreadGetPostsOK with default headers values
func (*ThreadGetPostsOK) Error ¶
func (o *ThreadGetPostsOK) Error() string
type ThreadGetPostsParams ¶
type ThreadGetPostsParams struct { /*Desc Флаг сортировки по убыванию. */ Desc *bool /*Limit Максимальное кол-во возвращаемых записей. */ Limit *int32 /*Since Идентификатор поста, после которого будут выводиться записи (пост с данным идентификатором в результат не попадает). */ Since *int64 /*SlugOrID Идентификатор ветки обсуждения. */ SlugOrID string /*Sort Вид сортировки: * flat - по дате, комментарии выводятся простым списком в порядке создания; * tree - древовидный, комментарии выводятся отсортированные в дереве по N штук; * parent_tree - древовидные с пагинацией по родительским (parent_tree), на странице N родительских комментов и все комментарии прикрепленные к ним, в древвидном отображение. Подробности: https://park.mail.ru/blog/topic/view/1191/ */ Sort *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ThreadGetPostsParams contains all the parameters to send to the API endpoint for the thread get posts operation typically these are written to a http.Request
func NewThreadGetPostsParams ¶
func NewThreadGetPostsParams() *ThreadGetPostsParams
NewThreadGetPostsParams creates a new ThreadGetPostsParams object with the default values initialized.
func NewThreadGetPostsParamsWithContext ¶
func NewThreadGetPostsParamsWithContext(ctx context.Context) *ThreadGetPostsParams
NewThreadGetPostsParamsWithContext creates a new ThreadGetPostsParams object with the default values initialized, and the ability to set a context for a request
func NewThreadGetPostsParamsWithHTTPClient ¶
func NewThreadGetPostsParamsWithHTTPClient(client *http.Client) *ThreadGetPostsParams
NewThreadGetPostsParamsWithHTTPClient creates a new ThreadGetPostsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewThreadGetPostsParamsWithTimeout ¶
func NewThreadGetPostsParamsWithTimeout(timeout time.Duration) *ThreadGetPostsParams
NewThreadGetPostsParamsWithTimeout creates a new ThreadGetPostsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ThreadGetPostsParams) SetContext ¶
func (o *ThreadGetPostsParams) SetContext(ctx context.Context)
SetContext adds the context to the thread get posts params
func (*ThreadGetPostsParams) SetDesc ¶
func (o *ThreadGetPostsParams) SetDesc(desc *bool)
SetDesc adds the desc to the thread get posts params
func (*ThreadGetPostsParams) SetHTTPClient ¶
func (o *ThreadGetPostsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the thread get posts params
func (*ThreadGetPostsParams) SetLimit ¶
func (o *ThreadGetPostsParams) SetLimit(limit *int32)
SetLimit adds the limit to the thread get posts params
func (*ThreadGetPostsParams) SetSince ¶
func (o *ThreadGetPostsParams) SetSince(since *int64)
SetSince adds the since to the thread get posts params
func (*ThreadGetPostsParams) SetSlugOrID ¶
func (o *ThreadGetPostsParams) SetSlugOrID(slugOrID string)
SetSlugOrID adds the slugOrId to the thread get posts params
func (*ThreadGetPostsParams) SetSort ¶
func (o *ThreadGetPostsParams) SetSort(sort *string)
SetSort adds the sort to the thread get posts params
func (*ThreadGetPostsParams) SetTimeout ¶
func (o *ThreadGetPostsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the thread get posts params
func (*ThreadGetPostsParams) WithContext ¶
func (o *ThreadGetPostsParams) WithContext(ctx context.Context) *ThreadGetPostsParams
WithContext adds the context to the thread get posts params
func (*ThreadGetPostsParams) WithDesc ¶
func (o *ThreadGetPostsParams) WithDesc(desc *bool) *ThreadGetPostsParams
WithDesc adds the desc to the thread get posts params
func (*ThreadGetPostsParams) WithHTTPClient ¶
func (o *ThreadGetPostsParams) WithHTTPClient(client *http.Client) *ThreadGetPostsParams
WithHTTPClient adds the HTTPClient to the thread get posts params
func (*ThreadGetPostsParams) WithLimit ¶
func (o *ThreadGetPostsParams) WithLimit(limit *int32) *ThreadGetPostsParams
WithLimit adds the limit to the thread get posts params
func (*ThreadGetPostsParams) WithSince ¶
func (o *ThreadGetPostsParams) WithSince(since *int64) *ThreadGetPostsParams
WithSince adds the since to the thread get posts params
func (*ThreadGetPostsParams) WithSlugOrID ¶
func (o *ThreadGetPostsParams) WithSlugOrID(slugOrID string) *ThreadGetPostsParams
WithSlugOrID adds the slugOrID to the thread get posts params
func (*ThreadGetPostsParams) WithSort ¶
func (o *ThreadGetPostsParams) WithSort(sort *string) *ThreadGetPostsParams
WithSort adds the sort to the thread get posts params
func (*ThreadGetPostsParams) WithTimeout ¶
func (o *ThreadGetPostsParams) WithTimeout(timeout time.Duration) *ThreadGetPostsParams
WithTimeout adds the timeout to the thread get posts params
func (*ThreadGetPostsParams) WriteToRequest ¶
func (o *ThreadGetPostsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ThreadGetPostsReader ¶
type ThreadGetPostsReader struct {
// contains filtered or unexported fields
}
ThreadGetPostsReader is a Reader for the ThreadGetPosts structure.
func (*ThreadGetPostsReader) ReadResponse ¶
func (o *ThreadGetPostsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ThreadUpdateNotFound ¶
ThreadUpdateNotFound handles this case with default header values.
Ветка обсуждения отсутсвует в форуме.
func NewThreadUpdateNotFound ¶
func NewThreadUpdateNotFound() *ThreadUpdateNotFound
NewThreadUpdateNotFound creates a ThreadUpdateNotFound with default headers values
func (*ThreadUpdateNotFound) Error ¶
func (o *ThreadUpdateNotFound) Error() string
type ThreadUpdateOK ¶
ThreadUpdateOK handles this case with default header values.
Информация о ветке обсуждения.
func NewThreadUpdateOK ¶
func NewThreadUpdateOK() *ThreadUpdateOK
NewThreadUpdateOK creates a ThreadUpdateOK with default headers values
func (*ThreadUpdateOK) Error ¶
func (o *ThreadUpdateOK) Error() string
type ThreadUpdateParams ¶
type ThreadUpdateParams struct { /*SlugOrID Идентификатор ветки обсуждения. */ SlugOrID string /*Thread Данные ветки обсуждения. */ Thread *models.ThreadUpdate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ThreadUpdateParams contains all the parameters to send to the API endpoint for the thread update operation typically these are written to a http.Request
func NewThreadUpdateParams ¶
func NewThreadUpdateParams() *ThreadUpdateParams
NewThreadUpdateParams creates a new ThreadUpdateParams object with the default values initialized.
func NewThreadUpdateParamsWithContext ¶
func NewThreadUpdateParamsWithContext(ctx context.Context) *ThreadUpdateParams
NewThreadUpdateParamsWithContext creates a new ThreadUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewThreadUpdateParamsWithHTTPClient ¶
func NewThreadUpdateParamsWithHTTPClient(client *http.Client) *ThreadUpdateParams
NewThreadUpdateParamsWithHTTPClient creates a new ThreadUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewThreadUpdateParamsWithTimeout ¶
func NewThreadUpdateParamsWithTimeout(timeout time.Duration) *ThreadUpdateParams
NewThreadUpdateParamsWithTimeout creates a new ThreadUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*ThreadUpdateParams) SetContext ¶
func (o *ThreadUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the thread update params
func (*ThreadUpdateParams) SetHTTPClient ¶
func (o *ThreadUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the thread update params
func (*ThreadUpdateParams) SetSlugOrID ¶
func (o *ThreadUpdateParams) SetSlugOrID(slugOrID string)
SetSlugOrID adds the slugOrId to the thread update params
func (*ThreadUpdateParams) SetThread ¶
func (o *ThreadUpdateParams) SetThread(thread *models.ThreadUpdate)
SetThread adds the thread to the thread update params
func (*ThreadUpdateParams) SetTimeout ¶
func (o *ThreadUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the thread update params
func (*ThreadUpdateParams) WithContext ¶
func (o *ThreadUpdateParams) WithContext(ctx context.Context) *ThreadUpdateParams
WithContext adds the context to the thread update params
func (*ThreadUpdateParams) WithHTTPClient ¶
func (o *ThreadUpdateParams) WithHTTPClient(client *http.Client) *ThreadUpdateParams
WithHTTPClient adds the HTTPClient to the thread update params
func (*ThreadUpdateParams) WithSlugOrID ¶
func (o *ThreadUpdateParams) WithSlugOrID(slugOrID string) *ThreadUpdateParams
WithSlugOrID adds the slugOrID to the thread update params
func (*ThreadUpdateParams) WithThread ¶
func (o *ThreadUpdateParams) WithThread(thread *models.ThreadUpdate) *ThreadUpdateParams
WithThread adds the thread to the thread update params
func (*ThreadUpdateParams) WithTimeout ¶
func (o *ThreadUpdateParams) WithTimeout(timeout time.Duration) *ThreadUpdateParams
WithTimeout adds the timeout to the thread update params
func (*ThreadUpdateParams) WriteToRequest ¶
func (o *ThreadUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ThreadUpdateReader ¶
type ThreadUpdateReader struct {
// contains filtered or unexported fields
}
ThreadUpdateReader is a Reader for the ThreadUpdate structure.
func (*ThreadUpdateReader) ReadResponse ¶
func (o *ThreadUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ThreadVoteNotFound ¶
ThreadVoteNotFound handles this case with default header values.
Ветка обсуждения отсутсвует в форуме.
func NewThreadVoteNotFound ¶
func NewThreadVoteNotFound() *ThreadVoteNotFound
NewThreadVoteNotFound creates a ThreadVoteNotFound with default headers values
func (*ThreadVoteNotFound) Error ¶
func (o *ThreadVoteNotFound) Error() string
type ThreadVoteOK ¶
ThreadVoteOK handles this case with default header values.
Информация о ветке обсуждения.
func NewThreadVoteOK ¶
func NewThreadVoteOK() *ThreadVoteOK
NewThreadVoteOK creates a ThreadVoteOK with default headers values
func (*ThreadVoteOK) Error ¶
func (o *ThreadVoteOK) Error() string
type ThreadVoteParams ¶
type ThreadVoteParams struct { /*SlugOrID Идентификатор ветки обсуждения. */ SlugOrID string /*Vote Информация о голосовании пользователя. */ Vote *models.Vote Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ThreadVoteParams contains all the parameters to send to the API endpoint for the thread vote operation typically these are written to a http.Request
func NewThreadVoteParams ¶
func NewThreadVoteParams() *ThreadVoteParams
NewThreadVoteParams creates a new ThreadVoteParams object with the default values initialized.
func NewThreadVoteParamsWithContext ¶
func NewThreadVoteParamsWithContext(ctx context.Context) *ThreadVoteParams
NewThreadVoteParamsWithContext creates a new ThreadVoteParams object with the default values initialized, and the ability to set a context for a request
func NewThreadVoteParamsWithHTTPClient ¶
func NewThreadVoteParamsWithHTTPClient(client *http.Client) *ThreadVoteParams
NewThreadVoteParamsWithHTTPClient creates a new ThreadVoteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewThreadVoteParamsWithTimeout ¶
func NewThreadVoteParamsWithTimeout(timeout time.Duration) *ThreadVoteParams
NewThreadVoteParamsWithTimeout creates a new ThreadVoteParams object with the default values initialized, and the ability to set a timeout on a request
func (*ThreadVoteParams) SetContext ¶
func (o *ThreadVoteParams) SetContext(ctx context.Context)
SetContext adds the context to the thread vote params
func (*ThreadVoteParams) SetHTTPClient ¶
func (o *ThreadVoteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the thread vote params
func (*ThreadVoteParams) SetSlugOrID ¶
func (o *ThreadVoteParams) SetSlugOrID(slugOrID string)
SetSlugOrID adds the slugOrId to the thread vote params
func (*ThreadVoteParams) SetTimeout ¶
func (o *ThreadVoteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the thread vote params
func (*ThreadVoteParams) SetVote ¶
func (o *ThreadVoteParams) SetVote(vote *models.Vote)
SetVote adds the vote to the thread vote params
func (*ThreadVoteParams) WithContext ¶
func (o *ThreadVoteParams) WithContext(ctx context.Context) *ThreadVoteParams
WithContext adds the context to the thread vote params
func (*ThreadVoteParams) WithHTTPClient ¶
func (o *ThreadVoteParams) WithHTTPClient(client *http.Client) *ThreadVoteParams
WithHTTPClient adds the HTTPClient to the thread vote params
func (*ThreadVoteParams) WithSlugOrID ¶
func (o *ThreadVoteParams) WithSlugOrID(slugOrID string) *ThreadVoteParams
WithSlugOrID adds the slugOrID to the thread vote params
func (*ThreadVoteParams) WithTimeout ¶
func (o *ThreadVoteParams) WithTimeout(timeout time.Duration) *ThreadVoteParams
WithTimeout adds the timeout to the thread vote params
func (*ThreadVoteParams) WithVote ¶
func (o *ThreadVoteParams) WithVote(vote *models.Vote) *ThreadVoteParams
WithVote adds the vote to the thread vote params
func (*ThreadVoteParams) WriteToRequest ¶
func (o *ThreadVoteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ThreadVoteReader ¶
type ThreadVoteReader struct {
// contains filtered or unexported fields
}
ThreadVoteReader is a Reader for the ThreadVote structure.
func (*ThreadVoteReader) ReadResponse ¶
func (o *ThreadVoteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserCreateConflict ¶
UserCreateConflict handles this case with default header values.
Пользователь уже присутсвует в базе данных. Возвращает данные ранее созданных пользователей с тем же nickname-ом иои email-ом.
func NewUserCreateConflict ¶
func NewUserCreateConflict() *UserCreateConflict
NewUserCreateConflict creates a UserCreateConflict with default headers values
func (*UserCreateConflict) Error ¶
func (o *UserCreateConflict) Error() string
type UserCreateCreated ¶
UserCreateCreated handles this case with default header values.
Пользователь успешно создан. Возвращает данные созданного пользователя.
func NewUserCreateCreated ¶
func NewUserCreateCreated() *UserCreateCreated
NewUserCreateCreated creates a UserCreateCreated with default headers values
func (*UserCreateCreated) Error ¶
func (o *UserCreateCreated) Error() string
type UserCreateParams ¶
type UserCreateParams struct { /*Nickname Идентификатор пользователя. */ Nickname string /*Profile Данные пользовательского профиля. */ Profile *models.User Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UserCreateParams contains all the parameters to send to the API endpoint for the user create operation typically these are written to a http.Request
func NewUserCreateParams ¶
func NewUserCreateParams() *UserCreateParams
NewUserCreateParams creates a new UserCreateParams object with the default values initialized.
func NewUserCreateParamsWithContext ¶
func NewUserCreateParamsWithContext(ctx context.Context) *UserCreateParams
NewUserCreateParamsWithContext creates a new UserCreateParams object with the default values initialized, and the ability to set a context for a request
func NewUserCreateParamsWithHTTPClient ¶
func NewUserCreateParamsWithHTTPClient(client *http.Client) *UserCreateParams
NewUserCreateParamsWithHTTPClient creates a new UserCreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUserCreateParamsWithTimeout ¶
func NewUserCreateParamsWithTimeout(timeout time.Duration) *UserCreateParams
NewUserCreateParamsWithTimeout creates a new UserCreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UserCreateParams) SetContext ¶
func (o *UserCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the user create params
func (*UserCreateParams) SetHTTPClient ¶
func (o *UserCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user create params
func (*UserCreateParams) SetNickname ¶
func (o *UserCreateParams) SetNickname(nickname string)
SetNickname adds the nickname to the user create params
func (*UserCreateParams) SetProfile ¶
func (o *UserCreateParams) SetProfile(profile *models.User)
SetProfile adds the profile to the user create params
func (*UserCreateParams) SetTimeout ¶
func (o *UserCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user create params
func (*UserCreateParams) WithContext ¶
func (o *UserCreateParams) WithContext(ctx context.Context) *UserCreateParams
WithContext adds the context to the user create params
func (*UserCreateParams) WithHTTPClient ¶
func (o *UserCreateParams) WithHTTPClient(client *http.Client) *UserCreateParams
WithHTTPClient adds the HTTPClient to the user create params
func (*UserCreateParams) WithNickname ¶
func (o *UserCreateParams) WithNickname(nickname string) *UserCreateParams
WithNickname adds the nickname to the user create params
func (*UserCreateParams) WithProfile ¶
func (o *UserCreateParams) WithProfile(profile *models.User) *UserCreateParams
WithProfile adds the profile to the user create params
func (*UserCreateParams) WithTimeout ¶
func (o *UserCreateParams) WithTimeout(timeout time.Duration) *UserCreateParams
WithTimeout adds the timeout to the user create params
func (*UserCreateParams) WriteToRequest ¶
func (o *UserCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserCreateReader ¶
type UserCreateReader struct {
// contains filtered or unexported fields
}
UserCreateReader is a Reader for the UserCreate structure.
func (*UserCreateReader) ReadResponse ¶
func (o *UserCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserGetOneNotFound ¶
UserGetOneNotFound handles this case with default header values.
Пользователь отсутсвует в системе.
func NewUserGetOneNotFound ¶
func NewUserGetOneNotFound() *UserGetOneNotFound
NewUserGetOneNotFound creates a UserGetOneNotFound with default headers values
func (*UserGetOneNotFound) Error ¶
func (o *UserGetOneNotFound) Error() string
type UserGetOneOK ¶
UserGetOneOK handles this case with default header values.
Информация о пользователе.
func NewUserGetOneOK ¶
func NewUserGetOneOK() *UserGetOneOK
NewUserGetOneOK creates a UserGetOneOK with default headers values
func (*UserGetOneOK) Error ¶
func (o *UserGetOneOK) Error() string
type UserGetOneParams ¶
type UserGetOneParams struct { /*Nickname Идентификатор пользователя. */ Nickname string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UserGetOneParams contains all the parameters to send to the API endpoint for the user get one operation typically these are written to a http.Request
func NewUserGetOneParams ¶
func NewUserGetOneParams() *UserGetOneParams
NewUserGetOneParams creates a new UserGetOneParams object with the default values initialized.
func NewUserGetOneParamsWithContext ¶
func NewUserGetOneParamsWithContext(ctx context.Context) *UserGetOneParams
NewUserGetOneParamsWithContext creates a new UserGetOneParams object with the default values initialized, and the ability to set a context for a request
func NewUserGetOneParamsWithHTTPClient ¶
func NewUserGetOneParamsWithHTTPClient(client *http.Client) *UserGetOneParams
NewUserGetOneParamsWithHTTPClient creates a new UserGetOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUserGetOneParamsWithTimeout ¶
func NewUserGetOneParamsWithTimeout(timeout time.Duration) *UserGetOneParams
NewUserGetOneParamsWithTimeout creates a new UserGetOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*UserGetOneParams) SetContext ¶
func (o *UserGetOneParams) SetContext(ctx context.Context)
SetContext adds the context to the user get one params
func (*UserGetOneParams) SetHTTPClient ¶
func (o *UserGetOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user get one params
func (*UserGetOneParams) SetNickname ¶
func (o *UserGetOneParams) SetNickname(nickname string)
SetNickname adds the nickname to the user get one params
func (*UserGetOneParams) SetTimeout ¶
func (o *UserGetOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user get one params
func (*UserGetOneParams) WithContext ¶
func (o *UserGetOneParams) WithContext(ctx context.Context) *UserGetOneParams
WithContext adds the context to the user get one params
func (*UserGetOneParams) WithHTTPClient ¶
func (o *UserGetOneParams) WithHTTPClient(client *http.Client) *UserGetOneParams
WithHTTPClient adds the HTTPClient to the user get one params
func (*UserGetOneParams) WithNickname ¶
func (o *UserGetOneParams) WithNickname(nickname string) *UserGetOneParams
WithNickname adds the nickname to the user get one params
func (*UserGetOneParams) WithTimeout ¶
func (o *UserGetOneParams) WithTimeout(timeout time.Duration) *UserGetOneParams
WithTimeout adds the timeout to the user get one params
func (*UserGetOneParams) WriteToRequest ¶
func (o *UserGetOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserGetOneReader ¶
type UserGetOneReader struct {
// contains filtered or unexported fields
}
UserGetOneReader is a Reader for the UserGetOne structure.
func (*UserGetOneReader) ReadResponse ¶
func (o *UserGetOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UserUpdateConflict ¶
UserUpdateConflict handles this case with default header values.
Новые данные профиля пользователя конфликтуют с имеющимися пользователями.
func NewUserUpdateConflict ¶
func NewUserUpdateConflict() *UserUpdateConflict
NewUserUpdateConflict creates a UserUpdateConflict with default headers values
func (*UserUpdateConflict) Error ¶
func (o *UserUpdateConflict) Error() string
type UserUpdateNotFound ¶
UserUpdateNotFound handles this case with default header values.
Пользователь отсутсвует в системе.
func NewUserUpdateNotFound ¶
func NewUserUpdateNotFound() *UserUpdateNotFound
NewUserUpdateNotFound creates a UserUpdateNotFound with default headers values
func (*UserUpdateNotFound) Error ¶
func (o *UserUpdateNotFound) Error() string
type UserUpdateOK ¶
UserUpdateOK handles this case with default header values.
Актуальная информация о пользователе после изменения профиля.
func NewUserUpdateOK ¶
func NewUserUpdateOK() *UserUpdateOK
NewUserUpdateOK creates a UserUpdateOK with default headers values
func (*UserUpdateOK) Error ¶
func (o *UserUpdateOK) Error() string
type UserUpdateParams ¶
type UserUpdateParams struct { /*Nickname Идентификатор пользователя. */ Nickname string /*Profile Изменения профиля пользователя. */ Profile *models.UserUpdate Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UserUpdateParams contains all the parameters to send to the API endpoint for the user update operation typically these are written to a http.Request
func NewUserUpdateParams ¶
func NewUserUpdateParams() *UserUpdateParams
NewUserUpdateParams creates a new UserUpdateParams object with the default values initialized.
func NewUserUpdateParamsWithContext ¶
func NewUserUpdateParamsWithContext(ctx context.Context) *UserUpdateParams
NewUserUpdateParamsWithContext creates a new UserUpdateParams object with the default values initialized, and the ability to set a context for a request
func NewUserUpdateParamsWithHTTPClient ¶
func NewUserUpdateParamsWithHTTPClient(client *http.Client) *UserUpdateParams
NewUserUpdateParamsWithHTTPClient creates a new UserUpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUserUpdateParamsWithTimeout ¶
func NewUserUpdateParamsWithTimeout(timeout time.Duration) *UserUpdateParams
NewUserUpdateParamsWithTimeout creates a new UserUpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UserUpdateParams) SetContext ¶
func (o *UserUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the user update params
func (*UserUpdateParams) SetHTTPClient ¶
func (o *UserUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the user update params
func (*UserUpdateParams) SetNickname ¶
func (o *UserUpdateParams) SetNickname(nickname string)
SetNickname adds the nickname to the user update params
func (*UserUpdateParams) SetProfile ¶
func (o *UserUpdateParams) SetProfile(profile *models.UserUpdate)
SetProfile adds the profile to the user update params
func (*UserUpdateParams) SetTimeout ¶
func (o *UserUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the user update params
func (*UserUpdateParams) WithContext ¶
func (o *UserUpdateParams) WithContext(ctx context.Context) *UserUpdateParams
WithContext adds the context to the user update params
func (*UserUpdateParams) WithHTTPClient ¶
func (o *UserUpdateParams) WithHTTPClient(client *http.Client) *UserUpdateParams
WithHTTPClient adds the HTTPClient to the user update params
func (*UserUpdateParams) WithNickname ¶
func (o *UserUpdateParams) WithNickname(nickname string) *UserUpdateParams
WithNickname adds the nickname to the user update params
func (*UserUpdateParams) WithProfile ¶
func (o *UserUpdateParams) WithProfile(profile *models.UserUpdate) *UserUpdateParams
WithProfile adds the profile to the user update params
func (*UserUpdateParams) WithTimeout ¶
func (o *UserUpdateParams) WithTimeout(timeout time.Duration) *UserUpdateParams
WithTimeout adds the timeout to the user update params
func (*UserUpdateParams) WriteToRequest ¶
func (o *UserUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UserUpdateReader ¶
type UserUpdateReader struct {
// contains filtered or unexported fields
}
UserUpdateReader is a Reader for the UserUpdate structure.
func (*UserUpdateReader) ReadResponse ¶
func (o *UserUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- clear_parameters.go
- clear_responses.go
- forum_create_parameters.go
- forum_create_responses.go
- forum_get_one_parameters.go
- forum_get_one_responses.go
- forum_get_threads_parameters.go
- forum_get_threads_responses.go
- forum_get_users_parameters.go
- forum_get_users_responses.go
- operations_client.go
- post_get_one_parameters.go
- post_get_one_responses.go
- post_update_parameters.go
- post_update_responses.go
- posts_create_parameters.go
- posts_create_responses.go
- status_parameters.go
- status_responses.go
- thread_create_parameters.go
- thread_create_responses.go
- thread_get_one_parameters.go
- thread_get_one_responses.go
- thread_get_posts_parameters.go
- thread_get_posts_responses.go
- thread_update_parameters.go
- thread_update_responses.go
- thread_vote_parameters.go
- thread_vote_responses.go
- user_create_parameters.go
- user_create_responses.go
- user_get_one_parameters.go
- user_get_one_responses.go
- user_update_parameters.go
- user_update_responses.go