2024-01-29 18:32:16 +00:00
|
|
|
// 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{}
|
|
|
|
|
2024-01-29 18:51:23 +00:00
|
|
|
// CreateShortURL implements createShortURL operation.
|
|
|
|
//
|
|
|
|
// Create a shorten URL.
|
2024-01-29 18:32:16 +00:00
|
|
|
//
|
|
|
|
// POST /create
|
2024-01-29 18:51:23 +00:00
|
|
|
func (UnimplementedHandler) CreateShortURL(ctx context.Context, req *CreateShortURLReq) (r CreateShortURLRes, _ error) {
|
2024-01-29 18:32:16 +00:00
|
|
|
return r, ht.ErrNotImplemented
|
|
|
|
}
|
|
|
|
|
2024-01-29 18:51:23 +00:00
|
|
|
// RedirectLongURL implements redirectLongURL operation.
|
2024-01-29 18:32:16 +00:00
|
|
|
//
|
|
|
|
// Redirect client to long URL.
|
|
|
|
//
|
|
|
|
// GET /{hash}
|
2024-01-29 18:51:23 +00:00
|
|
|
func (UnimplementedHandler) RedirectLongURL(ctx context.Context, params RedirectLongURLParams) (r RedirectLongURLRes, _ error) {
|
2024-01-29 18:32:16 +00:00
|
|
|
return r, ht.ErrNotImplemented
|
|
|
|
}
|