Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URIMatcher ¶
type URIMatcher interface { Matches(uri string) bool ExtractVariables(uri string) (map[string]string, error) }
URIMatcher handles URI matching for resources. This is an internal interface used by resource implementations.
func NewStaticMatcher ¶
func NewStaticMatcher(uri string) URIMatcher
NewStaticMatcher creates a matcher for exact URI matches.
func NewTemplateMatcher ¶
func NewTemplateMatcher(templateStr string) (URIMatcher, error)
NewTemplateMatcher creates a matcher for URI template patterns.
Click to show internal directories.
Click to hide internal directories.