mirror of
https://github.com/umputun/reproxy.git
synced 2025-12-17 22:27:50 +02:00
32 lines
554 B
Go
32 lines
554 B
Go
|
|
package lib
|
||
|
|
|
||
|
|
import (
|
||
|
|
"net/http"
|
||
|
|
)
|
||
|
|
|
||
|
|
// Request sent to plugins
|
||
|
|
type Request struct {
|
||
|
|
URL string
|
||
|
|
RemoteAddr string
|
||
|
|
Host string
|
||
|
|
Header http.Header
|
||
|
|
Route string // final destination
|
||
|
|
Match struct {
|
||
|
|
Server string
|
||
|
|
Src string
|
||
|
|
Dst string
|
||
|
|
ProviderID string
|
||
|
|
PingURL string
|
||
|
|
MatchType string
|
||
|
|
AssetsLocation string
|
||
|
|
AssetsWebRoot string
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// Response from plugin's handler call
|
||
|
|
type Response struct {
|
||
|
|
StatusCode int
|
||
|
|
HeadersIn http.Header
|
||
|
|
HeadersOut http.Header
|
||
|
|
}
|