operations

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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

func (*ClearOK) Error

func (o *ClearOK) Error() string

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 (*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 ClientService added in v0.3.0

type ClientService interface {
	Clear(params *ClearParams) (*ClearOK, error)

	ForumCreate(params *ForumCreateParams) (*ForumCreateCreated, error)

	ForumGetOne(params *ForumGetOneParams) (*ForumGetOneOK, error)

	ForumGetThreads(params *ForumGetThreadsParams) (*ForumGetThreadsOK, error)

	ForumGetUsers(params *ForumGetUsersParams) (*ForumGetUsersOK, error)

	PostGetOne(params *PostGetOneParams) (*PostGetOneOK, error)

	PostUpdate(params *PostUpdateParams) (*PostUpdateOK, error)

	PostsCreate(params *PostsCreateParams) (*PostsCreateCreated, error)

	Status(params *StatusParams) (*StatusOK, error)

	ThreadCreate(params *ThreadCreateParams) (*ThreadCreateCreated, error)

	ThreadGetOne(params *ThreadGetOneParams) (*ThreadGetOneOK, error)

	ThreadGetPosts(params *ThreadGetPostsParams) (*ThreadGetPostsOK, error)

	ThreadUpdate(params *ThreadUpdateParams) (*ThreadUpdateOK, error)

	ThreadVote(params *ThreadVoteParams) (*ThreadVoteOK, error)

	UserCreate(params *UserCreateParams) (*UserCreateCreated, error)

	UserGetOne(params *UserGetOneParams) (*UserGetOneOK, error)

	UserUpdate(params *UserUpdateParams) (*UserUpdateOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new operations API client.

type ForumCreateConflict

type ForumCreateConflict struct {
	Payload *models.Forum
}

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

func (*ForumCreateConflict) GetPayload added in v0.3.0

func (o *ForumCreateConflict) GetPayload() *models.Forum

type ForumCreateCreated

type ForumCreateCreated struct {
	Payload *models.Forum
}

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

func (*ForumCreateCreated) GetPayload added in v0.3.0

func (o *ForumCreateCreated) GetPayload() *models.Forum

type ForumCreateNotFound

type ForumCreateNotFound struct {
	Payload *models.Error
}

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

func (*ForumCreateNotFound) GetPayload added in v0.3.0

func (o *ForumCreateNotFound) GetPayload() *models.Error

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

type ForumGetOneNotFound struct {
	Payload *models.Error
}

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

func (*ForumGetOneNotFound) GetPayload added in v0.3.0

func (o *ForumGetOneNotFound) GetPayload() *models.Error

type ForumGetOneOK

type ForumGetOneOK struct {
	Payload *models.Forum
}

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

func (*ForumGetOneOK) GetPayload added in v0.3.0

func (o *ForumGetOneOK) GetPayload() *models.Forum

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

type ForumGetThreadsNotFound struct {
	Payload *models.Error
}

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

func (*ForumGetThreadsNotFound) GetPayload added in v0.3.0

func (o *ForumGetThreadsNotFound) GetPayload() *models.Error

type ForumGetThreadsOK

type ForumGetThreadsOK struct {
	Payload models.Threads
}

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

func (*ForumGetThreadsOK) GetPayload added in v0.3.0

func (o *ForumGetThreadsOK) GetPayload() models.Threads

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

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

WithSince adds the since to the forum get threads params

func (*ForumGetThreadsParams) WithSlug

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

type ForumGetUsersNotFound struct {
	Payload *models.Error
}

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

func (*ForumGetUsersNotFound) GetPayload added in v0.3.0

func (o *ForumGetUsersNotFound) GetPayload() *models.Error

type ForumGetUsersOK

type ForumGetUsersOK struct {
	Payload models.Users
}

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

func (*ForumGetUsersOK) GetPayload added in v0.3.0

func (o *ForumGetUsersOK) GetPayload() models.Users

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

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

type PostGetOneNotFound struct {
	Payload *models.Error
}

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

func (*PostGetOneNotFound) GetPayload added in v0.3.0

func (o *PostGetOneNotFound) GetPayload() *models.Error

type PostGetOneOK

type PostGetOneOK struct {
	Payload *models.PostFull
}

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

func (*PostGetOneOK) GetPayload added in v0.3.0

func (o *PostGetOneOK) GetPayload() *models.PostFull

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

type PostUpdateNotFound struct {
	Payload *models.Error
}

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

func (*PostUpdateNotFound) GetPayload added in v0.3.0

func (o *PostUpdateNotFound) GetPayload() *models.Error

type PostUpdateOK

type PostUpdateOK struct {
	Payload *models.Post
}

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

func (*PostUpdateOK) GetPayload added in v0.3.0

func (o *PostUpdateOK) GetPayload() *models.Post

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

type PostsCreateConflict struct {
	Payload *models.Error
}

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

func (*PostsCreateConflict) GetPayload added in v0.3.0

func (o *PostsCreateConflict) GetPayload() *models.Error

type PostsCreateCreated added in v0.1.0

type PostsCreateCreated struct {
	Payload models.Posts
}

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

func (*PostsCreateCreated) GetPayload added in v0.3.0

func (o *PostsCreateCreated) GetPayload() models.Posts

type PostsCreateNotFound added in v0.1.0

type PostsCreateNotFound struct {
	Payload *models.Error
}

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

func (*PostsCreateNotFound) GetPayload added in v0.3.0

func (o *PostsCreateNotFound) GetPayload() *models.Error

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

type StatusOK struct {
	Payload *models.Status
}

StatusOK handles this case with default header values.

Кол-во записей в базе данных, включая помеченные как "удалённые".

func NewStatusOK

func NewStatusOK() *StatusOK

NewStatusOK creates a StatusOK with default headers values

func (*StatusOK) Error

func (o *StatusOK) Error() string

func (*StatusOK) GetPayload added in v0.3.0

func (o *StatusOK) GetPayload() *models.Status

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

type ThreadCreateConflict struct {
	Payload *models.Thread
}

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

func (*ThreadCreateConflict) GetPayload added in v0.3.0

func (o *ThreadCreateConflict) GetPayload() *models.Thread

type ThreadCreateCreated

type ThreadCreateCreated struct {
	Payload *models.Thread
}

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

func (*ThreadCreateCreated) GetPayload added in v0.3.0

func (o *ThreadCreateCreated) GetPayload() *models.Thread

type ThreadCreateNotFound

type ThreadCreateNotFound struct {
	Payload *models.Error
}

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

func (*ThreadCreateNotFound) GetPayload added in v0.3.0

func (o *ThreadCreateNotFound) GetPayload() *models.Error

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

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

type ThreadGetOneNotFound struct {
	Payload *models.Error
}

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

func (*ThreadGetOneNotFound) GetPayload added in v0.3.0

func (o *ThreadGetOneNotFound) GetPayload() *models.Error

type ThreadGetOneOK

type ThreadGetOneOK struct {
	Payload *models.Thread
}

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

func (*ThreadGetOneOK) GetPayload added in v0.3.0

func (o *ThreadGetOneOK) GetPayload() *models.Thread

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

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

type ThreadGetPostsNotFound struct {
	Payload *models.Error
}

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

func (*ThreadGetPostsNotFound) GetPayload added in v0.3.0

func (o *ThreadGetPostsNotFound) GetPayload() *models.Error

type ThreadGetPostsOK

type ThreadGetPostsOK struct {
	Payload models.Posts
}

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

func (*ThreadGetPostsOK) GetPayload added in v0.3.0

func (o *ThreadGetPostsOK) GetPayload() models.Posts

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

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

type ThreadUpdateNotFound struct {
	Payload *models.Error
}

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

func (*ThreadUpdateNotFound) GetPayload added in v0.3.0

func (o *ThreadUpdateNotFound) GetPayload() *models.Error

type ThreadUpdateOK

type ThreadUpdateOK struct {
	Payload *models.Thread
}

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

func (*ThreadUpdateOK) GetPayload added in v0.3.0

func (o *ThreadUpdateOK) GetPayload() *models.Thread

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

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

type ThreadVoteNotFound struct {
	Payload *models.Error
}

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

func (*ThreadVoteNotFound) GetPayload added in v0.3.0

func (o *ThreadVoteNotFound) GetPayload() *models.Error

type ThreadVoteOK

type ThreadVoteOK struct {
	Payload *models.Thread
}

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

func (*ThreadVoteOK) GetPayload added in v0.3.0

func (o *ThreadVoteOK) GetPayload() *models.Thread

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

type UserCreateConflict struct {
	Payload models.Users
}

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

func (*UserCreateConflict) GetPayload added in v0.3.0

func (o *UserCreateConflict) GetPayload() models.Users

type UserCreateCreated

type UserCreateCreated struct {
	Payload *models.User
}

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

func (*UserCreateCreated) GetPayload added in v0.3.0

func (o *UserCreateCreated) GetPayload() *models.User

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

type UserGetOneNotFound struct {
	Payload *models.Error
}

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

func (*UserGetOneNotFound) GetPayload added in v0.3.0

func (o *UserGetOneNotFound) GetPayload() *models.Error

type UserGetOneOK

type UserGetOneOK struct {
	Payload *models.User
}

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

func (*UserGetOneOK) GetPayload added in v0.3.0

func (o *UserGetOneOK) GetPayload() *models.User

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

type UserUpdateConflict struct {
	Payload *models.Error
}

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

func (*UserUpdateConflict) GetPayload added in v0.3.0

func (o *UserUpdateConflict) GetPayload() *models.Error

type UserUpdateNotFound

type UserUpdateNotFound struct {
	Payload *models.Error
}

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

func (*UserUpdateNotFound) GetPayload added in v0.3.0

func (o *UserUpdateNotFound) GetPayload() *models.Error

type UserUpdateOK

type UserUpdateOK struct {
	Payload *models.User
}

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

func (*UserUpdateOK) GetPayload added in v0.3.0

func (o *UserUpdateOK) GetPayload() *models.User

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL