Documentation ¶
Overview ¶
Package paths parses API paths.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConflictError ¶
ConflictError represents a conflict between two paths.
func (*ConflictError) Error ¶
func (e *ConflictError) Error() string
type Path ¶
Path represents a parsed path.
type Segment ¶
type Segment struct { Type SegmentType Value string // literal if Type == Literal; name of parameter otherwise ValueType schema.Builtin }
Segment represents a parsed path segment.
type SegmentType ¶
type SegmentType int
SegmentType represents the different types of path segments recognized by the parser.
const ( // Literal is a literal string path segment. Literal SegmentType = iota // Param represents a single path segment of any (non-empty) value. Param // Wildcard reprsents zero or more path segments of any value. Wildcard )
Click to show internal directories.
Click to hide internal directories.