Documentation ¶
Index ¶
Constants ¶
View Source
const ( Begin state = 1 << iota DeclaratorSymbol PathExpression QuerySymbol VariableTerm End )
View Source
const ( NoneExpected expect = 1 << iota ExpectIdentifier ExpectPath ExpectArguments )
Variables ¶
This section is empty.
Functions ¶
func ToStringOfHttpMethod ¶
func ToStringOfHttpMethod(method HttpMethod) string
Types ¶
type HttpMethod ¶
type HttpMethod interface{}
func ToHttpMethod ¶
func ToHttpMethod(method string) HttpMethod
type IncompatibleMethod ¶
type IncompatibleMethod struct{}
type Metadata ¶
type Metadata struct { Type MetadataType Info interface{} ErrorReason string }
func NewMetadata ¶
func NewMetadata(metaDataType MetadataType, routeInfos ...RouteInfo) *Metadata
func ParseMetadata ¶
type MetadataType ¶
type MetadataType int
const ( Route MetadataType = iota Variable MultiVariable )
type MultiVariableInfo ¶
type MultiVariableInfo struct {
Names []string
}
func NewMultiVariableInfo ¶
func NewMultiVariableInfo(names ...string) *MultiVariableInfo
type RouteInfo ¶
type RouteInfo struct { Method HttpMethod Path PathList Mapping map[string]*interface{} Query []string }
func NewRouteInfo ¶
func NewRouteInfo(method HttpMethod) RouteInfo
func (*RouteInfo) AddArgument ¶
func (*RouteInfo) ConcatenatePath ¶
func (*RouteInfo) ConcatenatePathVariable ¶
type VariableInfo ¶
type VariableInfo struct {
Name string
}
func NewVariableInfo ¶
func NewVariableInfo(name string) *VariableInfo
Click to show internal directories.
Click to hide internal directories.