package
Version:
v0.0.0-...-58ab302
Opens a new window with list of versions in this module.
Published: Sep 30, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Rules []Rule `json:"rules"`
}
Config describes file configuration
PatternRule hods config rule + compiled pattern
Provider applies rules to requested URI
New returns new proxy rules provider from file
Transform calculates destination URL based on input and proxy rules
type Rule struct {
Pattern string `json:"pattern"`
URL string `json:"url"`
}
Rule contains rule information (from config file)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.