// 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 }