short/internal/oas/oas_unimplemented_gen.go

33 lines
799 B
Go
Raw Permalink Normal View History

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