Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elem ¶
type Elem struct {
Sub bool // true if Elem has parent Elem
Type *ir.Type
Var string
Tag ir.Tag
More bool
}
Elem variable helper for recursive array or object encoding or decoding.
type ErrNotImplemented ¶
type ErrNotImplemented struct {
Name string
}
func (*ErrNotImplemented) Error ¶
func (e *ErrNotImplemented) Error() string
type ErrUnsupportedContentTypes ¶
type ErrUnsupportedContentTypes struct {
ContentTypes []string
}
func (*ErrUnsupportedContentTypes) Error ¶
func (e *ErrUnsupportedContentTypes) Error() string
type FileSystem ¶
FileSystem represents a directory of generated package.
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) WriteSource ¶
func (g *Generator) WriteSource(fs FileSystem, pkgName string) error
WriteSource writes generated definitions to fs.
type ResponseElem ¶
type ResponseElem struct {
Response *ir.StatusResponse
Ptr bool
}
type RouteEge ¶
type Router ¶
type Router struct {
Methods []RouterMethod
// contains filtered or unexported fields
}
Router state for routing path to handlers.
type RouterMethod ¶
func (RouterMethod) Root ¶
func (m RouterMethod) Root() *RouteEge
type TemplateConfig ¶
type TemplateConfig struct {
Package string
Operations []*ir.Operation
Types map[string]*ir.Type
URITypes map[*ir.Type]struct{}
Interfaces map[string]*ir.Type
Error *ir.StatusResponse
ErrorType *ir.Type
Methods []RouterMethod
}
func (TemplateConfig) RegexStrings ¶ added in v0.5.0
func (t TemplateConfig) RegexStrings() (r []string)
RegexStrings returns slice of all unique regex validators.
Click to show internal directories.
Click to hide internal directories.