Documentation
¶
Index ¶
- type LogLevel
- type Logger
- func (logger *Logger) Debug(message string, keys ...interface{})
- func (logger *Logger) Error(message string, keys ...interface{})
- func (logger *Logger) Fatal(message string, keys ...interface{})
- func (logger *Logger) Info(message string, keys ...interface{})
- func (logger *Logger) SetLogLevel(level LogLevel)
- func (logger *Logger) Warn(message string, keys ...interface{})
- type Parameter
- type Parser
- func (p *Parser) GetSpec(dirs []string) (*openapi3.T, error)
- func (p *Parser) GetTypeSpec(t ast.Expr) *ast.TypeSpec
- func (p *Parser) ParseTypeExpr(key string, expr ast.Expr) *openapi3.SchemaRef
- func (p *Parser) ProcessFile(path string, file *ast.File) error
- func (p *Parser) WithMetaPath(path string) *Parser
- type RequestBody
- type ResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
func (*Logger) SetLogLevel ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser is a struct that holds the state of the parser.
func (*Parser) ParseTypeExpr ¶
ParseTypeExpr returns the OpenAPI schema for the given Go type expression. Returns nil if the expression is not a valid type. TODO: should search cache based on openapi:name tag instead of field name
func (*Parser) WithMetaPath ¶
type RequestBody ¶
type ResponseBody ¶
Click to show internal directories.
Click to hide internal directories.