Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DebugMode indicates mode is debug. DebugMode = "debug" // ReleaseMode indicates mode is release. ReleaseMode = "release" )
View Source
const EnvMode = "GATEWAY_MODE"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ProxyEngine ¶
type ProxyEngine struct {
// Director must be a function which modifies
// the request into a new request to be sent
// using Transport. Its response is then copied
// back to the original client unmodified.
Director func(*http.Request)
// The transport used to perform proxy requests.
Transport http.RoundTripper
// FlushInterval specifies the flush interval
// to flush to the client while copying the
// response body.
// If zero, no periodic flushing is done.
FlushInterval time.Duration
// contains filtered or unexported fields
}
func New ¶
func New() *ProxyEngine
func (*ProxyEngine) Run ¶
func (e *ProxyEngine) Run() error
type ReverseProxy ¶
type ReverseProxy struct {
}
func NewReverseProxy ¶
func NewReverseProxy() *ReverseProxy
Click to show internal directories.
Click to hide internal directories.