Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Header string `json:"header,omitempty"` // target header Mapping map[string]string `json:"mapping,omitempty"` // mapping pairs (regex, target service) }
Config defines the plugin configuration.
func CreateConfig ¶
func CreateConfig() *Config
CreateConfig creates the default plugin configuration.
type CustomProxy ¶
type CustomProxy struct {
// contains filtered or unexported fields
}
CustomProxy defines the proxy struct
func (*CustomProxy) ServeHTTP ¶
func (a *CustomProxy) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Process the requests to verify if they match with defined mapping patterns
Click to show internal directories.
Click to hide internal directories.