Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyURL = errors.New("url should not be empty") ErrPatterntContinsData = errors.New("url pattern should not contain path, query or fragment") ErrSchemeMismatch = errors.New("url scheme and mapping scheme is not equal") ErrTooManyWildcards = errors.New("replcace pattern contains too many wildcards") )
Functions ¶
func PatchReplacePattern ¶
func PatchReplacePattern(replacePattern *ReplacePattern, options ...replacePatternOption)
Types ¶
type ReplacePattern ¶
type ReplacePattern struct {
// contains filtered or unexported fields
}
func NewReplacePattern ¶
func NewReplacePattern(parsedPattern *url.URL, options ...replacePatternOption) (ReplacePattern, error)
func NewReplacePatternString ¶
func NewReplacePatternString(rawURL string, options ...replacePatternOption) (ReplacePattern, error)
type URLGlob ¶
type URLGlob struct {
WildCardCount int
Port string
Scheme string
// contains filtered or unexported fields
}
func NewURLGlob ¶
func (*URLGlob) ReplaceAll ¶
func (*URLGlob) ReplaceAllString ¶
Click to show internal directories.
Click to hide internal directories.