Versions in this module Expand all Collapse all v0 v0.0.1 Jul 30, 2024 Changes in this version + func GetSwagger() (swagger *openapi3.T, err error) + func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error) + func RegisterHandlers(router gin.IRouter, si ServerInterface) + func RegisterHandlersWithOptions(router gin.IRouter, si ServerInterface, options GinServerOptions) + type BadrequestResponse struct + type Example struct + Value *string + type GinServerOptions struct + BaseURL string + ErrorHandler func(*gin.Context, error, int) + Middlewares []MiddlewareFunc + type HeadersExample200JSONResponse struct + Body Example + Headers HeadersExample200ResponseHeaders + func (response HeadersExample200JSONResponse) VisitHeadersExampleResponse(w http.ResponseWriter) error + type HeadersExample200ResponseHeaders struct + Header1 string + Header2 int + type HeadersExample400Response = BadrequestResponse + func (response HeadersExample400Response) VisitHeadersExampleResponse(w http.ResponseWriter) error + type HeadersExampleJSONRequestBody = Example + type HeadersExampleParams struct + Header1 string + Header2 *int + type HeadersExampleRequestObject struct + Body *HeadersExampleJSONRequestBody + Params HeadersExampleParams + type HeadersExampleResponseObject interface + VisitHeadersExampleResponse func(w http.ResponseWriter) error + type HeadersExampledefaultResponse struct + StatusCode int + func (response HeadersExampledefaultResponse) VisitHeadersExampleResponse(w http.ResponseWriter) error + type JSONExample200JSONResponse Example + func (response JSONExample200JSONResponse) VisitJSONExampleResponse(w http.ResponseWriter) error + type JSONExample400Response = BadrequestResponse + func (response JSONExample400Response) VisitJSONExampleResponse(w http.ResponseWriter) error + type JSONExampleJSONRequestBody = Example + type JSONExampleRequestObject struct + Body *JSONExampleJSONRequestBody + type JSONExampleResponseObject interface + VisitJSONExampleResponse func(w http.ResponseWriter) error + type JSONExampledefaultResponse struct + StatusCode int + func (response JSONExampledefaultResponse) VisitJSONExampleResponse(w http.ResponseWriter) error + type MiddlewareFunc func(c *gin.Context) + type MultipartExample200MultipartResponse func(writer *multipart.Writer) error + func (response MultipartExample200MultipartResponse) VisitMultipartExampleResponse(w http.ResponseWriter) error + type MultipartExample400Response = BadrequestResponse + func (response MultipartExample400Response) VisitMultipartExampleResponse(w http.ResponseWriter) error + type MultipartExampleMultipartRequestBody = Example + type MultipartExampleRequestObject struct + Body *multipart.Reader + type MultipartExampleResponseObject interface + VisitMultipartExampleResponse func(w http.ResponseWriter) error + type MultipartExampledefaultResponse struct + StatusCode int + func (response MultipartExampledefaultResponse) VisitMultipartExampleResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes200FormdataResponse Example + func (response MultipleRequestAndResponseTypes200FormdataResponse) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes200ImagepngResponse struct + Body io.Reader + ContentLength int64 + func (response MultipleRequestAndResponseTypes200ImagepngResponse) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes200JSONResponse Example + func (response MultipleRequestAndResponseTypes200JSONResponse) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes200MultipartResponse func(writer *multipart.Writer) error + func (response MultipleRequestAndResponseTypes200MultipartResponse) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes200TextResponse string + func (response MultipleRequestAndResponseTypes200TextResponse) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypes400Response = BadrequestResponse + func (response MultipleRequestAndResponseTypes400Response) VisitMultipleRequestAndResponseTypesResponse(w http.ResponseWriter) error + type MultipleRequestAndResponseTypesFormdataRequestBody = Example + type MultipleRequestAndResponseTypesJSONRequestBody = Example + type MultipleRequestAndResponseTypesMultipartRequestBody = Example + type MultipleRequestAndResponseTypesRequestObject struct + Body io.Reader + FormdataBody *MultipleRequestAndResponseTypesFormdataRequestBody + JSONBody *MultipleRequestAndResponseTypesJSONRequestBody + MultipartBody *multipart.Reader + TextBody *MultipleRequestAndResponseTypesTextRequestBody + type MultipleRequestAndResponseTypesResponseObject interface + VisitMultipleRequestAndResponseTypesResponse func(w http.ResponseWriter) error + type MultipleRequestAndResponseTypesTextBody = string + type MultipleRequestAndResponseTypesTextRequestBody = MultipleRequestAndResponseTypesTextBody + type ReservedGoKeywordParameters200TextResponse string + func (response ReservedGoKeywordParameters200TextResponse) VisitReservedGoKeywordParametersResponse(w http.ResponseWriter) error + type ReservedGoKeywordParametersRequestObject struct + Type string + type ReservedGoKeywordParametersResponseObject interface + VisitReservedGoKeywordParametersResponse func(w http.ResponseWriter) error + type ReusableResponses200JSONResponse struct + func (response ReusableResponses200JSONResponse) VisitReusableResponsesResponse(w http.ResponseWriter) error + type ReusableResponses400Response = BadrequestResponse + func (response ReusableResponses400Response) VisitReusableResponsesResponse(w http.ResponseWriter) error + type ReusableResponsesJSONRequestBody = Example + type ReusableResponsesRequestObject struct + Body *ReusableResponsesJSONRequestBody + type ReusableResponsesResponseObject interface + VisitReusableResponsesResponse func(w http.ResponseWriter) error + type ReusableResponsesdefaultResponse struct + StatusCode int + func (response ReusableResponsesdefaultResponse) VisitReusableResponsesResponse(w http.ResponseWriter) error + type Reusableresponse = Example + type ReusableresponseJSONResponse struct + Body Example + Headers ReusableresponseResponseHeaders + type ReusableresponseResponseHeaders struct + Header1 string + Header2 int + type ServerInterface interface + HeadersExample func(c *gin.Context, params HeadersExampleParams) + JSONExample func(c *gin.Context) + MultipartExample func(c *gin.Context) + MultipleRequestAndResponseTypes func(c *gin.Context) + ReservedGoKeywordParameters func(c *gin.Context, pType string) + ReusableResponses func(c *gin.Context) + TextExample func(c *gin.Context) + URLEncodedExample func(c *gin.Context) + UnionExample func(c *gin.Context) + UnknownExample func(c *gin.Context) + UnspecifiedContentType func(c *gin.Context) + func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface + type ServerInterfaceWrapper struct + ErrorHandler func(*gin.Context, error, int) + Handler ServerInterface + HandlerMiddlewares []MiddlewareFunc + func (siw *ServerInterfaceWrapper) HeadersExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) JSONExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) MultipartExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) MultipleRequestAndResponseTypes(c *gin.Context) + func (siw *ServerInterfaceWrapper) ReservedGoKeywordParameters(c *gin.Context) + func (siw *ServerInterfaceWrapper) ReusableResponses(c *gin.Context) + func (siw *ServerInterfaceWrapper) TextExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) URLEncodedExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) UnionExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) UnknownExample(c *gin.Context) + func (siw *ServerInterfaceWrapper) UnspecifiedContentType(c *gin.Context) + type StrictHandlerFunc = runtime.StrictGinHandlerFunc + type StrictMiddlewareFunc = runtime.StrictGinMiddlewareFunc + type StrictServer struct + func (s StrictServer) HeadersExample(ctx context.Context, request HeadersExampleRequestObject) (HeadersExampleResponseObject, error) + func (s StrictServer) JSONExample(ctx context.Context, request JSONExampleRequestObject) (JSONExampleResponseObject, error) + func (s StrictServer) MultipartExample(ctx context.Context, request MultipartExampleRequestObject) (MultipartExampleResponseObject, error) + func (s StrictServer) MultipleRequestAndResponseTypes(ctx context.Context, request MultipleRequestAndResponseTypesRequestObject) (MultipleRequestAndResponseTypesResponseObject, error) + func (s StrictServer) ReservedGoKeywordParameters(ctx context.Context, request ReservedGoKeywordParametersRequestObject) (ReservedGoKeywordParametersResponseObject, error) + func (s StrictServer) ReusableResponses(ctx context.Context, request ReusableResponsesRequestObject) (ReusableResponsesResponseObject, error) + func (s StrictServer) TextExample(ctx context.Context, request TextExampleRequestObject) (TextExampleResponseObject, error) + func (s StrictServer) URLEncodedExample(ctx context.Context, request URLEncodedExampleRequestObject) (URLEncodedExampleResponseObject, error) + func (s StrictServer) UnionExample(ctx context.Context, request UnionExampleRequestObject) (UnionExampleResponseObject, error) + func (s StrictServer) UnknownExample(ctx context.Context, request UnknownExampleRequestObject) (UnknownExampleResponseObject, error) + func (s StrictServer) UnspecifiedContentType(ctx context.Context, request UnspecifiedContentTypeRequestObject) (UnspecifiedContentTypeResponseObject, error) + type StrictServerInterface interface + HeadersExample func(ctx context.Context, request HeadersExampleRequestObject) (HeadersExampleResponseObject, error) + JSONExample func(ctx context.Context, request JSONExampleRequestObject) (JSONExampleResponseObject, error) + MultipartExample func(ctx context.Context, request MultipartExampleRequestObject) (MultipartExampleResponseObject, error) + MultipleRequestAndResponseTypes func(ctx context.Context, request MultipleRequestAndResponseTypesRequestObject) (MultipleRequestAndResponseTypesResponseObject, error) + ReservedGoKeywordParameters func(ctx context.Context, request ReservedGoKeywordParametersRequestObject) (ReservedGoKeywordParametersResponseObject, error) + ReusableResponses func(ctx context.Context, request ReusableResponsesRequestObject) (ReusableResponsesResponseObject, error) + TextExample func(ctx context.Context, request TextExampleRequestObject) (TextExampleResponseObject, error) + URLEncodedExample func(ctx context.Context, request URLEncodedExampleRequestObject) (URLEncodedExampleResponseObject, error) + UnionExample func(ctx context.Context, request UnionExampleRequestObject) (UnionExampleResponseObject, error) + UnknownExample func(ctx context.Context, request UnknownExampleRequestObject) (UnknownExampleResponseObject, error) + UnspecifiedContentType func(ctx context.Context, request UnspecifiedContentTypeRequestObject) (UnspecifiedContentTypeResponseObject, error) + type TextExample200TextResponse string + func (response TextExample200TextResponse) VisitTextExampleResponse(w http.ResponseWriter) error + type TextExample400Response = BadrequestResponse + func (response TextExample400Response) VisitTextExampleResponse(w http.ResponseWriter) error + type TextExampleRequestObject struct + Body *TextExampleTextRequestBody + type TextExampleResponseObject interface + VisitTextExampleResponse func(w http.ResponseWriter) error + type TextExampleTextBody = string + type TextExampleTextRequestBody = TextExampleTextBody + type TextExampledefaultResponse struct + StatusCode int + func (response TextExampledefaultResponse) VisitTextExampleResponse(w http.ResponseWriter) error + type URLEncodedExample200FormdataResponse Example + func (response URLEncodedExample200FormdataResponse) VisitURLEncodedExampleResponse(w http.ResponseWriter) error + type URLEncodedExample400Response = BadrequestResponse + func (response URLEncodedExample400Response) VisitURLEncodedExampleResponse(w http.ResponseWriter) error + type URLEncodedExampleFormdataRequestBody = Example + type URLEncodedExampleRequestObject struct + Body *URLEncodedExampleFormdataRequestBody + type URLEncodedExampleResponseObject interface + VisitURLEncodedExampleResponse func(w http.ResponseWriter) error + type URLEncodedExampledefaultResponse struct + StatusCode int + func (response URLEncodedExampledefaultResponse) VisitURLEncodedExampleResponse(w http.ResponseWriter) error + type UnionExample200JSONResponse struct + Body struct{} + Headers UnionExample200ResponseHeaders + func (response UnionExample200JSONResponse) VisitUnionExampleResponse(w http.ResponseWriter) error + type UnionExample200ResponseHeaders struct + Header1 string + Header2 int + type UnionExample400Response = BadrequestResponse + func (response UnionExample400Response) VisitUnionExampleResponse(w http.ResponseWriter) error + type UnionExampleJSONRequestBody = Example + type UnionExampleRequestObject struct + Body *UnionExampleJSONRequestBody + type UnionExampleResponseObject interface + VisitUnionExampleResponse func(w http.ResponseWriter) error + type UnionExampledefaultResponse struct + StatusCode int + func (response UnionExampledefaultResponse) VisitUnionExampleResponse(w http.ResponseWriter) error + type UnknownExample200Videomp4Response struct + Body io.Reader + ContentLength int64 + func (response UnknownExample200Videomp4Response) VisitUnknownExampleResponse(w http.ResponseWriter) error + type UnknownExample400Response = BadrequestResponse + func (response UnknownExample400Response) VisitUnknownExampleResponse(w http.ResponseWriter) error + type UnknownExampleRequestObject struct + Body io.Reader + type UnknownExampleResponseObject interface + VisitUnknownExampleResponse func(w http.ResponseWriter) error + type UnknownExampledefaultResponse struct + StatusCode int + func (response UnknownExampledefaultResponse) VisitUnknownExampleResponse(w http.ResponseWriter) error + type UnspecifiedContentType200VideoResponse struct + Body io.Reader + ContentLength int64 + ContentType string + func (response UnspecifiedContentType200VideoResponse) VisitUnspecifiedContentTypeResponse(w http.ResponseWriter) error + type UnspecifiedContentType400Response = BadrequestResponse + func (response UnspecifiedContentType400Response) VisitUnspecifiedContentTypeResponse(w http.ResponseWriter) error + type UnspecifiedContentType401Response struct + func (response UnspecifiedContentType401Response) VisitUnspecifiedContentTypeResponse(w http.ResponseWriter) error + type UnspecifiedContentType403Response struct + func (response UnspecifiedContentType403Response) VisitUnspecifiedContentTypeResponse(w http.ResponseWriter) error + type UnspecifiedContentTypeRequestObject struct + Body io.Reader + ContentType string + type UnspecifiedContentTypeResponseObject interface + VisitUnspecifiedContentTypeResponse func(w http.ResponseWriter) error + type UnspecifiedContentTypedefaultResponse struct + StatusCode int + func (response UnspecifiedContentTypedefaultResponse) VisitUnspecifiedContentTypeResponse(w http.ResponseWriter) error