Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetReflector ¶
GetReflector creates a new OpenAPI reflector with custom options
func ScalarDocsHandler ¶
func ScalarDocsHandler(params DocsParams) http.HandlerFunc
ScalarDocsHandler returns a handler that serves the API documentation using the Scalar API Reference component.
Types ¶
type DocsParams ¶
type OpenAPIGenerator ¶
type OpenAPIGenerator struct { }
func NewOpenAPIGenerator ¶
func NewOpenAPIGenerator() *OpenAPIGenerator
func (*OpenAPIGenerator) GenerateDocumentation ¶
func (g *OpenAPIGenerator) GenerateDocumentation(_ context.Context, title string, version string, routeInfos []openapiModels.RouteInfo) ([]byte, error)
GenerateDocumentation generates OpenAPI documentation for all routes
Click to show internal directories.
Click to hide internal directories.