Files
lincodex/backend/internal/adapter/primary/http/api/oas_server_gen.go
T
2026-10-05 14:23:31 +03:00

37 lines
764 B
Go

// Code generated by ogen, DO NOT EDIT.
package api
import (
"context"
)
// Handler handles operations described by OpenAPI v3 specification.
type Handler interface {
// GetHealthz implements GetHealthz operation.
//
// Check whether the API process is responding.
//
// GET /api/v1/healthz
GetHealthz(ctx context.Context) (*HealthResponse, error)
}
// Server implements http server based on OpenAPI v3 specification and
// calls Handler to handle requests.
type Server struct {
h Handler
baseServer
}
// NewServer creates new Server.
func NewServer(h Handler, opts ...ServerOption) (*Server, error) {
s, err := newServerConfig(opts...).baseServer()
if err != nil {
return nil, err
}
return &Server{
h: h,
baseServer: s,
}, nil
}