141 lines
4.3 KiB
Go
141 lines
4.3 KiB
Go
// Code generated by ogen, DO NOT EDIT.
|
|
|
|
package oas
|
|
|
|
import (
|
|
"context"
|
|
|
|
ht "github.com/ogen-go/ogen/http"
|
|
)
|
|
|
|
// UnimplementedHandler is no-op Handler which returns http.ErrNotImplemented.
|
|
type UnimplementedHandler struct{}
|
|
|
|
var _ Handler = UnimplementedHandler{}
|
|
|
|
// CreateChat implements createChat operation.
|
|
//
|
|
// Создать чат; вызывающий должен входить в member_ids.
|
|
//
|
|
// POST /api/v1/chats
|
|
func (UnimplementedHandler) CreateChat(ctx context.Context, req *CreateChat) (r CreateChatRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// CreateMessage implements createMessage operation.
|
|
//
|
|
// Отправить сообщение.
|
|
//
|
|
// POST /api/v1/chats/{chat_id}/messages
|
|
func (UnimplementedHandler) CreateMessage(ctx context.Context, req *CreateMessage, params CreateMessageParams) (r CreateMessageRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// CreateSession implements createSession operation.
|
|
//
|
|
// Вход: Basic username:password; выдаёт сессию.
|
|
//
|
|
// POST /api/v1/auth/sessions
|
|
func (UnimplementedHandler) CreateSession(ctx context.Context) (r CreateSessionRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// CurrentUser implements currentUser operation.
|
|
//
|
|
// Текущий пользователь.
|
|
//
|
|
// GET /api/v1/users/me
|
|
func (UnimplementedHandler) CurrentUser(ctx context.Context) (r CurrentUserRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// DownloadAttachment implements downloadAttachment operation.
|
|
//
|
|
// Скачать байты через авторизованный API.
|
|
//
|
|
// GET /api/v1/attachments/{attachment_id}/content
|
|
func (UnimplementedHandler) DownloadAttachment(ctx context.Context, params DownloadAttachmentParams) (r DownloadAttachmentRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetAttachment implements getAttachment operation.
|
|
//
|
|
// Метаданные вложения, доступ участникам чата.
|
|
//
|
|
// GET /api/v1/attachments/{attachment_id}
|
|
func (UnimplementedHandler) GetAttachment(ctx context.Context, params GetAttachmentParams) (r GetAttachmentRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// GetChat implements getChat operation.
|
|
//
|
|
// Получить доступный чат.
|
|
//
|
|
// GET /api/v1/chats/{chat_id}
|
|
func (UnimplementedHandler) GetChat(ctx context.Context, params GetChatParams) (r GetChatRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// ListChats implements listChats operation.
|
|
//
|
|
// Чаты текущего пользователя.
|
|
//
|
|
// GET /api/v1/chats
|
|
func (UnimplementedHandler) ListChats(ctx context.Context, params ListChatsParams) (r ListChatsRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// ListMessages implements listMessages operation.
|
|
//
|
|
// Сообщения по (created_at, id) по возрастанию.
|
|
//
|
|
// GET /api/v1/chats/{chat_id}/messages
|
|
func (UnimplementedHandler) ListMessages(ctx context.Context, params ListMessagesParams) (r ListMessagesRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// Liveness implements liveness operation.
|
|
//
|
|
// Процесс жив.
|
|
//
|
|
// GET /health/live
|
|
func (UnimplementedHandler) Liveness(ctx context.Context) (r LivenessRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// Readiness implements readiness operation.
|
|
//
|
|
// Готов принимать трафик.
|
|
//
|
|
// GET /health/ready
|
|
func (UnimplementedHandler) Readiness(ctx context.Context) (r ReadinessRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// RegisterUser implements registerUser operation.
|
|
//
|
|
// Создать пользователя.
|
|
//
|
|
// POST /api/v1/users
|
|
func (UnimplementedHandler) RegisterUser(ctx context.Context, req *CreateUser) (r RegisterUserRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// RevokeSession implements revokeSession operation.
|
|
//
|
|
// Отозвать текущую сессию.
|
|
//
|
|
// DELETE /api/v1/auth/sessions/current
|
|
func (UnimplementedHandler) RevokeSession(ctx context.Context) (r RevokeSessionRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|
|
|
|
// UploadAttachment implements uploadAttachment operation.
|
|
//
|
|
// Принять один PNG/JPEG, до 10 MiB.
|
|
//
|
|
// POST /api/v1/chats/{chat_id}/attachments
|
|
func (UnimplementedHandler) UploadAttachment(ctx context.Context, req UploadAttachmentReq, params UploadAttachmentParams) (r UploadAttachmentRes, _ error) {
|
|
return r, ht.ErrNotImplemented
|
|
}
|