Documentation
¶
Index ¶
- Variables
- type Replacer
- func (r *Replacer) IsSourceSecure() bool
- func (r *Replacer) IsTargetSecure() bool
- func (r *Replacer) StringToSource(rawURL string) (string, error)
- func (r *Replacer) ToTarget(rawURL string) (string, error)
- func (r *Replacer) URLToSource(parsedURL *url.URL) (*url.URL, error)
- func (r *Replacer) URLToTarget(parsedURL *url.URL) (*url.URL, error)
- type URLReplacerFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMappingNotFound = errors.New("mapping not found")
View Source
var ErrMappingNotSpecified = errors.New("you must specify at least one mapping")
View Source
var ErrSchemeNotMatched = errors.New("scheme in mapping and query not matched")
Functions ¶
This section is empty.
Types ¶
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
func (*Replacer) IsSourceSecure ¶ added in v0.0.3
func (*Replacer) IsTargetSecure ¶ added in v0.0.3
func (*Replacer) StringToSource ¶ added in v0.0.3
type URLReplacerFactory ¶
type URLReplacerFactory struct {
// contains filtered or unexported fields
}
func NewURLReplacerFactory ¶
func NewURLReplacerFactory(mappings map[string]string) (*URLReplacerFactory, error)
Click to show internal directories.
Click to hide internal directories.