Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Assembler ¶
type Assembler struct {
// contains filtered or unexported fields
}
Assembler discovers routes in a project directory using a framework description.
func New ¶
func New(desc *framework.Description) (*Assembler, error)
New returns an Assembler for the given framework description.
type Route ¶
type Route struct {
Method string
Path string
HandlerRef string
MiddlewareChain []string
Source SourceLocation
}
Route is a discovered HTTP route endpoint.
type SourceLocation ¶
SourceLocation identifies where in source the route is registered (1-indexed).
Click to show internal directories.
Click to hide internal directories.