ing
This commit is contained in:
parent
adb8b71fd1
commit
8fbf210d2c
|
@ -25,7 +25,7 @@ type ConnectionHandlers struct {
|
||||||
Concurrency int `json:"concurrency"`
|
Concurrency int `json:"concurrency"`
|
||||||
KeepAlive time.Duration `json:"keepAlive"`
|
KeepAlive time.Duration `json:"keepAlive"`
|
||||||
HandshakeTimeout time.Duration `json:"handshakeTimeout"`
|
HandshakeTimeout time.Duration `json:"handshakeTimeout"`
|
||||||
TLSConfig *tls.Config
|
TLSConfig *tls.Config `json:"-"`
|
||||||
validated atomic.Value
|
validated atomic.Value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,9 +18,9 @@ type Connectors struct {
|
||||||
socket.ClientConnHandlers
|
socket.ClientConnHandlers
|
||||||
socket.ReadWriteHandlers
|
socket.ReadWriteHandlers
|
||||||
|
|
||||||
Network string `json:"network"`
|
Network string `json:"network"`
|
||||||
Address string `json:"address"`
|
Address string `json:"address"`
|
||||||
LocalAddress net.Addr
|
LocalAddress net.Addr `json:"-"`
|
||||||
|
|
||||||
stopChan chan struct{}
|
stopChan chan struct{}
|
||||||
stopWg sync.WaitGroup
|
stopWg sync.WaitGroup
|
||||||
|
|
|
@ -32,24 +32,24 @@ type Connectors struct {
|
||||||
|
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
|
|
||||||
RequestHeader http.Header
|
RequestHeader http.Header `json:"-"`
|
||||||
Subprotocols []string `json:"subprotocols"`
|
Subprotocols []string `json:"subprotocols"`
|
||||||
// Jar specifies the cookie jar.
|
// Jar specifies the cookie jar.
|
||||||
// If Jar is nil, cookies are not sent in requests and ignored
|
// If Jar is nil, cookies are not sent in requests and ignored
|
||||||
// in responses.
|
// in responses.
|
||||||
CookieJar http.CookieJar
|
CookieJar http.CookieJar `json:"-"`
|
||||||
|
|
||||||
ResponseHandler func(*http.Response)
|
ResponseHandler func(*http.Response) `json:"-"`
|
||||||
|
|
||||||
// NetDial specifies the dial function for creating TCP connections. If
|
// NetDial specifies the dial function for creating TCP connections. If
|
||||||
// NetDial is nil, net.Dial is used.
|
// NetDial is nil, net.Dial is used.
|
||||||
NetDial func(network, addr string) (net.Conn, error)
|
NetDial func(network, addr string) (net.Conn, error) `json:"-"`
|
||||||
|
|
||||||
// Proxy specifies a function to return a proxy for a given
|
// Proxy specifies a function to return a proxy for a given
|
||||||
// Request. If the function returns a non-nil error, the
|
// Request. If the function returns a non-nil error, the
|
||||||
// request is aborted with the provided error.
|
// request is aborted with the provided error.
|
||||||
// If Proxy is nil or returns a nil *URL, no proxy is used.
|
// If Proxy is nil or returns a nil *URL, no proxy is used.
|
||||||
Proxy func(*http.Request) (*url.URL, error)
|
Proxy func(*http.Request) (*url.URL, error) `json:"-"`
|
||||||
|
|
||||||
serverURL *url.URL
|
serverURL *url.URL
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ type ServerHandler interface {
|
||||||
type ServerHandlers struct {
|
type ServerHandlers struct {
|
||||||
web.ServerHandlers
|
web.ServerHandlers
|
||||||
|
|
||||||
ErrorServelt Servlet
|
ErrorServelt Servlet `json:"-"`
|
||||||
|
|
||||||
// path = context only.
|
// path = context only.
|
||||||
// ex) /auth => /auth, /auth/member => /auth
|
// ex) /auth => /auth, /auth/member => /auth
|
||||||
|
|
Loading…
Reference in New Issue
Block a user