resource

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL