{"modulePath":"github.com/grbit/swagger-example","version":"v0.0.0-20260826195332-5db34ffe95c9","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package oapi_chi_server\n\nPackage oapi\\_chi\\_server provides primitives to interact with the openapi HTTP API.\n\nCode generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.\n\n## Functions\n\n```go\nfunc GetSwagger() (swagger *openapi3.T, err error)\n```\nGetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to \"import-mapping\" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.\n\n```go\nfunc Handler(si ServerInterface) http.Handler\n```\nHandler creates http.Handler with routing matching OpenAPI spec.\n\n```go\nfunc HandlerFromMux(si ServerInterface, r chi.Router) http.Handler\n```\nHandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.\n\n```go\nfunc HandlerFromMuxWithBaseURL(si ServerInterface, r chi.Router, baseURL string) http.Handler\n```\n\n```go\nfunc HandlerWithOptions(si ServerInterface, options ChiServerOptions) http.Handler\n```\nHandlerWithOptions creates http.Handler with additional options\n\n```go\nfunc PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)\n```\nConstructs a synthetic filesystem for resolving external references when loading openapi specifications.\n\n## Types\n\n```go\ntype ChiServerOptions struct {\n\tBaseURL          string\n\tBaseRouter       chi.Router\n\tMiddlewares      []MiddlewareFunc\n\tErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\n\n```go\ntype CreateUpdatePropertyInfoById200JSONResponse PropertyInfoResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById200JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById400JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById404Response struct {\n}\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById404Response) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById500JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoById501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoById501JSONResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype CreateUpdatePropertyInfoByIdRequestObject struct {\n\tPropertyId string `json:\"propertyId\"`\n\tBody       *CreateUpdatePropertyInfoByIdJSONRequestBody\n}\n```\n\n```go\ntype CreateUpdatePropertyInfoByIdResponseObject interface {\n\tVisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype CreateUpdatePropertyInfoByIddefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response CreateUpdatePropertyInfoByIddefaultResponse) VisitCreateUpdatePropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo200JSONResponse PropertiesInfoResponse\n```\n\n```go\nfunc (response GetPropertiesInfo200JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo400JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo404Response struct {\n}\n```\n\n```go\nfunc (response GetPropertiesInfo404Response) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo500JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfo501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertiesInfo501JSONResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertiesInfoRequestObject struct {\n}\n```\n\n```go\ntype GetPropertiesInfoResponseObject interface {\n\tVisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetPropertiesInfodefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response GetPropertiesInfodefaultResponse) VisitGetPropertiesInfoResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById200JSONResponse PropertyInfoResponse\n```\n\n```go\nfunc (response GetPropertyInfoById200JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById400JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById400JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById404Response struct {\n}\n```\n\n```go\nfunc (response GetPropertyInfoById404Response) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById500JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById500JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoById501JSONResponse GenericErrorResponse\n```\n\n```go\nfunc (response GetPropertyInfoById501JSONResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype GetPropertyInfoByIdRequestObject struct {\n\tPropertyId string `json:\"propertyId\"`\n}\n```\n\n```go\ntype GetPropertyInfoByIdResponseObject interface {\n\tVisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n}\n```\n\n```go\ntype GetPropertyInfoByIddefaultResponse struct {\n\tStatusCode int\n}\n```\n\n```go\nfunc (response GetPropertyInfoByIddefaultResponse) VisitGetPropertyInfoByIdResponse(w http.ResponseWriter) error\n```\n\n```go\ntype InvalidParamFormatError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *InvalidParamFormatError) Error() string\n```\n\n```go\nfunc (e *InvalidParamFormatError) Unwrap() error\n```\n\n```go\ntype MiddlewareFunc func(http.Handler) http.Handler\n```\n\n```go\ntype RequiredHeaderError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *RequiredHeaderError) Error() string\n```\n\n```go\nfunc (e *RequiredHeaderError) Unwrap() error\n```\n\n```go\ntype RequiredParamError struct {\n\tParamName string\n}\n```\n\n```go\nfunc (e *RequiredParamError) Error() string\n```\n\n```go\ntype ServerInterface interface {\n\t// Retrieves properties information\n\t// (GET /property)\n\tGetPropertiesInfo(w http.ResponseWriter, r *http.Request)\n\t// Retrieves property information by ID\n\t// (GET /property/{propertyId})\n\tGetPropertyInfoById(w http.ResponseWriter, r *http.Request, propertyId string)\n\t// Set/Update property information by ID\n\t// (POST /property/{propertyId})\n\tCreateUpdatePropertyInfoById(w http.ResponseWriter, r *http.Request, propertyId string)\n}\n```\nServerInterface represents all server handlers.\n\n```go\nfunc NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface\n```\n\n```go\nfunc NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface\n```\n\n```go\ntype ServerInterfaceWrapper struct {\n\tHandler            ServerInterface\n\tHandlerMiddlewares []MiddlewareFunc\n\tErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\nServerInterfaceWrapper converts contexts to parameters.\n\n```go\nfunc (siw *ServerInterfaceWrapper) CreateUpdatePropertyInfoById(w http.ResponseWriter, r *http.Request)\n```\nCreateUpdatePropertyInfoById operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetPropertiesInfo(w http.ResponseWriter, r *http.Request)\n```\nGetPropertiesInfo operation middleware\n\n```go\nfunc (siw *ServerInterfaceWrapper) GetPropertyInfoById(w http.ResponseWriter, r *http.Request)\n```\nGetPropertyInfoById operation middleware\n\n```go\ntype StrictHTTPServerOptions struct {\n\tRequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)\n\tResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)\n}\n```\n\n```go\ntype StrictHandlerFunc func(ctx context.Context, w http.ResponseWriter, r *http.Request, args interface{}) (interface{}, error)\n```\n\n```go\ntype StrictMiddlewareFunc func(f StrictHandlerFunc, operationID string) StrictHandlerFunc\n```\n\n```go\ntype StrictServerInterface interface {\n\t// Retrieves properties information\n\t// (GET /property)\n\tGetPropertiesInfo(ctx context.Context, request GetPropertiesInfoRequestObject) (GetPropertiesInfoResponseObject, error)\n\t// Retrieves property information by ID\n\t// (GET /property/{propertyId})\n\tGetPropertyInfoById(ctx context.Context, request GetPropertyInfoByIdRequestObject) (GetPropertyInfoByIdResponseObject, error)\n\t// Set/Update property information by ID\n\t// (POST /property/{propertyId})\n\tCreateUpdatePropertyInfoById(ctx context.Context, request CreateUpdatePropertyInfoByIdRequestObject) (CreateUpdatePropertyInfoByIdResponseObject, error)\n}\n```\nStrictServerInterface represents all server handlers.\n\n```go\ntype TooManyValuesForParamError struct {\n\tParamName string\n\tCount     int\n}\n```\n\n```go\nfunc (e *TooManyValuesForParamError) Error() string\n```\n\n```go\ntype UnescapedCookieParamError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *UnescapedCookieParamError) Error() string\n```\n\n```go\nfunc (e *UnescapedCookieParamError) Unwrap() error\n```\n\n```go\ntype UnmarshallingParamError struct {\n\tParamName string\n\tErr       error\n}\n```\n\n```go\nfunc (e *UnmarshallingParamError) Error() string\n```\n\n```go\nfunc (e *UnmarshallingParamError) Unwrap() error\n```\n\n","path":"github.com/grbit/swagger-example/internal/codegen/server/chi","name":"oapi_chi_server","synopsis":"Package oapi_chi_server provides primitives to interact with the openapi HTTP API.","isRedistributable":true}
