package
0.0.0-20241114172023-67f4422999dc
Repository: https://github.com/bmstu-itstech/itsreg-bots.git
Documentation: pkg.go.dev

# Functions

Creates a new Client, with reasonable defaults.
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling.
NewCreateBotRequest calls the generic CreateBot builder with application/json body.
NewCreateBotRequestWithBody generates requests for CreateBot with any type of body.
NewCreateMailingRequest calls the generic CreateMailing builder with application/json body.
NewCreateMailingRequestWithBody generates requests for CreateMailing with any type of body.
NewDeleteBotRequest generates requests for DeleteBot.
NewGetAnswersRequest generates requests for GetAnswers.
NewGetBotRequest generates requests for GetBot.
NewGetBotsRequest generates requests for GetBots.
NewStartBotRequest generates requests for StartBot.
NewStartMailingRequest generates requests for StartMailing.
NewStopBotRequest generates requests for StopBot.
ParseCreateBotResponse parses an HTTP response from a CreateBotWithResponse call.
ParseCreateMailingResponse parses an HTTP response from a CreateMailingWithResponse call.
ParseDeleteBotResponse parses an HTTP response from a DeleteBotWithResponse call.
ParseGetAnswersResponse parses an HTTP response from a GetAnswersWithResponse call.
ParseGetBotResponse parses an HTTP response from a GetBotWithResponse call.
ParseGetBotsResponse parses an HTTP response from a GetBotsWithResponse call.
ParseStartBotResponse parses an HTTP response from a StartBotWithResponse call.
ParseStartMailingResponse parses an HTTP response from a StartMailingWithResponse call.
ParseStopBotResponse parses an HTTP response from a StopBotWithResponse call.
WithBaseURL overrides the baseURL.
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client.
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request.

# Constants

No description provided by the author
Defines values for BotStatus.
Defines values for BlockType.
Defines values for BlockType.
Defines values for BlockType.
Defines values for BotStatus.
Defines values for BotStatus.

# Structs

Block Минимальная структурная единица сценария бота.
Bot Информация о боте.
Client which conforms to the OpenAPI3 specification for this service.
ClientWithResponses builds on ClientInterface to offer response payloads.
No description provided by the author
CreateMailing Рассылка и связанные с ней точка входа и блоки.
No description provided by the author
No description provided by the author
EntryPoint Точка входа для бота.
Error Описание ошибки.
No description provided by the author
No description provided by the author
No description provided by the author
Mailing Рассылка от бота.
Option Опция для блока с выбором ответа.
PostBots Данные, необходимые для создания бота.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

The interface specification for the client above.
ClientWithResponsesInterface is the interface specification for the client with responses above.
Doer performs HTTP requests.

# Type aliases

BlockType Тип кнопки: - Сообщение (message) - просто сообщение от бота.
BotStatus Статус бота: started (запущен), stopped (не запущен), failed (ошибка запуска).
ClientOption allows setting custom parameters during construction.
CreateBotJSONRequestBody defines body for CreateBot for application/json ContentType.
CreateMailingJSONRequestBody defines body for CreateMailing for application/json ContentType.
GetBots Список ботов.
RequestEditorFn is the function signature for the RequestEditor callback function.