Documentation ¶
Index ¶
- func GetRouteRegexps(routes []RouteInfo) routeRegexps
- func ParseRouteFile(input io.Reader) ([]RouteFileEntry, []RouteError)
- func ProcessRouteFile(files [][]RouteFileEntry, filenames []string, nameSeparator string, ...) ([]RouteInfo, []RouteError)
- func RouteRegexpsToJSON(rrs *routeRegexps, tagGlobs []IncludeSpec) ([]byte, int)
- type IncludeSpec
- type RouteError
- type RouteErrorKind
- type RouteFileEntry
- type RouteInfo
- type RouteWithParents
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRouteRegexps ¶
func GetRouteRegexps(routes []RouteInfo) routeRegexps
func ParseRouteFile ¶
func ParseRouteFile(input io.Reader) ([]RouteFileEntry, []RouteError)
func ProcessRouteFile ¶
func ProcessRouteFile(files [][]RouteFileEntry, filenames []string, nameSeparator string, groupObserver func([]RouteWithParents)) ([]RouteInfo, []RouteError)
func RouteRegexpsToJSON ¶
func RouteRegexpsToJSON(rrs *routeRegexps, tagGlobs []IncludeSpec) ([]byte, int)
Types ¶
type IncludeSpec ¶
type RouteError ¶
type RouteError struct { Kind RouteErrorKind Line int DuplicateName string OtherLine int IOError error Filenames []string }
func ParseRouteFiles ¶
func ParseRouteFiles(inputFiles []string, inputReaders []io.Reader) ([][]RouteFileEntry, []RouteError)
func (RouteError) Error ¶
func (e RouteError) Error() string
type RouteErrorKind ¶
type RouteErrorKind int
const ( MissingNameOrRoute RouteErrorKind = iota DuplicateRouteName RouteErrorKind = iota RootMustStartWithSlash RouteErrorKind = iota OverlappingRoutes RouteErrorKind = iota MisplacedDot RouteErrorKind = iota RouteContainsBadCodePoint RouteErrorKind = iota QuestionMarkInRoute RouteErrorKind = iota HashInRoute RouteErrorKind = iota WhitespaceInRoute RouteErrorKind = iota IllegalCharInParamName RouteErrorKind = iota IllegalBackslashEscape RouteErrorKind = iota IllegalBackslashEscapeInRouteName RouteErrorKind = iota NontabspaceIndentationCharacter RouteErrorKind = iota BadCharacterInMethodName RouteErrorKind = iota MissingCommaBetweenMethodNames RouteErrorKind = iota TwoCommasInSequenceInMethodNames RouteErrorKind = iota IndentLessThanFirstLine RouteErrorKind = iota OnlyNoTrailingSlash RouteErrorKind = iota NoTrailingSlashAfterSlash RouteErrorKind = iota MultipleSlashesInARow RouteErrorKind = iota IOError RouteErrorKind = iota )
type RouteFileEntry ¶
type RouteFileEntry struct {
// contains filtered or unexported fields
}
type RouteWithParents ¶
Click to show internal directories.
Click to hide internal directories.