Documentation
¶
Index ¶
- Constants
- type GroupRegex
- type OpenAPIGen
- func (o *OpenAPIGen) AddGroup(group string, regex string) *OpenAPIGen
- func (o *OpenAPIGen) AddRoute(path string, method string, inputType reflect.Type, tag string) error
- func (o *OpenAPIGen) Generate() (string, error)
- func (o *OpenAPIGen) Register(data map[string]any) error
- func (o *OpenAPIGen) RegisterCustomType(typ reflect.Type, schema *openapi3.SchemaRef) error
- func (o *OpenAPIGen) RegisterEnum(enumType reflect.Type, values []any) error
- func (o *OpenAPIGen) RegisterType(typ reflect.Type) error
- func (o *OpenAPIGen) WriteToFile(filename string) error
Constants ¶
View Source
const DefaultTag = ""
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupRegex ¶
type OpenAPIGen ¶
type OpenAPIGen struct {
// contains filtered or unexported fields
}
func New ¶
func New(title string, version string) *OpenAPIGen
func (*OpenAPIGen) AddGroup ¶
func (o *OpenAPIGen) AddGroup(group string, regex string) *OpenAPIGen
func (*OpenAPIGen) Generate ¶
func (o *OpenAPIGen) Generate() (string, error)
func (*OpenAPIGen) RegisterCustomType ¶
func (*OpenAPIGen) RegisterEnum ¶
func (o *OpenAPIGen) RegisterEnum(enumType reflect.Type, values []any) error
func (*OpenAPIGen) RegisterType ¶
func (o *OpenAPIGen) RegisterType(typ reflect.Type) error
func (*OpenAPIGen) WriteToFile ¶
func (o *OpenAPIGen) WriteToFile(filename string) error
Click to show internal directories.
Click to hide internal directories.