Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Annotation ¶
type Annotation interface {
Type() Type
}
type ConsumeAnnotation ¶
type ConsumeAnnotation struct {
ContentType string
}
func (*ConsumeAnnotation) Type ¶
func (a *ConsumeAnnotation) Type() Type
type DescriptionAnnotation ¶
type DescriptionAnnotation struct {
Text string
}
func (*DescriptionAnnotation) Type ¶
func (a *DescriptionAnnotation) Type() Type
type IdAnnotation ¶
type IdAnnotation struct {
Text string
}
func (*IdAnnotation) Type ¶
func (a *IdAnnotation) Type() Type
type ParseError ¶
func NewParseError ¶
func NewParseError(column int, message string) *ParseError
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) Parse ¶
func (p *Parser) Parse() (Annotation, error)
type ProduceAnnotation ¶
type ProduceAnnotation struct {
ContentType string
}
func (*ProduceAnnotation) Type ¶
func (a *ProduceAnnotation) Type() Type
type SecurityAnnotation ¶
func (*SecurityAnnotation) Type ¶
func (a *SecurityAnnotation) Type() Type
type SimpleAnnotation ¶
type SimpleAnnotation struct {
// contains filtered or unexported fields
}
func (*SimpleAnnotation) Type ¶
func (a *SimpleAnnotation) Type() Type
type SummaryAnnotation ¶
type SummaryAnnotation struct {
Text string
}
func (*SummaryAnnotation) Type ¶
func (a *SummaryAnnotation) Type() Type
type TagAnnotation ¶
type TagAnnotation struct {
Tag string
}
func (*TagAnnotation) Type ¶
func (a *TagAnnotation) Type() Type
type UnresolvedAnnotation ¶
func (*UnresolvedAnnotation) Type ¶
func (a *UnresolvedAnnotation) Type() Type
Click to show internal directories.
Click to hide internal directories.