Files
reproxy/lib/rpc.go
T

32 lines
554 B
Go
Raw Normal View History

2021-06-01 02:56:39 -05:00
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
}