Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OxyLogger ¶
type OxyLogger struct { }
OxyLogger implements oxy Logger interface with logrus.
type RecordingErrorHandler ¶ added in v1.4.5
type RecordingErrorHandler struct {
// contains filtered or unexported fields
}
RecordingErrorHandler is an error handler, implementing the vulcand/oxy error handler interface, which is recording network errors by using the netErrorRecorder. In addition it sets a proper HTTP status code and body, depending on the type of error occurred.
func NewRecordingErrorHandler ¶ added in v1.4.5
func NewRecordingErrorHandler(recorder middlewares.NetErrorRecorder) *RecordingErrorHandler
NewRecordingErrorHandler creates and returns a new instance of RecordingErrorHandler.
func (*RecordingErrorHandler) ServeHTTP ¶ added in v1.4.5
func (eh *RecordingErrorHandler) ServeHTTP(w http.ResponseWriter, req *http.Request, err error)
type Rules ¶
type Rules struct {
// contains filtered or unexported fields
}
Rules holds rule parsing and configuration
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the reverse-proxy/load-balancer engine
func NewServer ¶
func NewServer(globalConfiguration configuration.GlobalConfiguration) *Server
NewServer returns an initialized Server.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.