lab1
This commit is contained in:
@@ -0,0 +1,95 @@
|
||||
// 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
|
||||
}
|
||||
|
||||
// CurrentUser implements currentUser operation.
|
||||
//
|
||||
// Текущий пользователь.
|
||||
//
|
||||
// GET /api/v1/users/me
|
||||
func (UnimplementedHandler) CurrentUser(ctx context.Context) (r CurrentUserRes, _ 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
|
||||
}
|
||||
Reference in New Issue
Block a user