oxyKit

package
v3.0.906 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const StatusClientClosedRequest = 499

StatusClientClosedRequest non-standard HTTP status code for client disconnection.

View Source
const StatusClientClosedRequestText = "Client Closed Request"

StatusClientClosedRequestText non-standard HTTP status for client disconnection.

Variables

This section is empty.

Functions

func NewLoadBalancerHandler deprecated

func NewLoadBalancerHandler(reverseProxy *httputil.ReverseProxy, servers []string, logrusLogger *logrus.Logger, verbose bool) (func(http.ResponseWriter, *http.Request), error)

NewLoadBalancerHandler

Deprecated: 详见 _info.md

@param reverseProxy 可以为nil(将采用默认值) @param servers e.g. []string{"http://localhost:8001", "http://localhost:8002"} @param logrusLogger 可以为nil,但不建议这么干,因为会无输出 @param verbose true: 详细的信息

func NewLogger

func NewLogger(logrusLogger *logrus.Logger) (logger utils.Logger)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL