From 8fbf210d2c1a6f2400e074c255ae891a752ae878 Mon Sep 17 00:00:00 2001 From: crusader Date: Fri, 13 Apr 2018 20:48:45 +0900 Subject: [PATCH] ing --- connection-handler.go | 2 +- socket/net/client/connector.go | 6 +++--- socket/web/client/connector.go | 12 ++++++------ web/fasthttp/server-handler.go | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/connection-handler.go b/connection-handler.go index d3e880b..7825267 100644 --- a/connection-handler.go +++ b/connection-handler.go @@ -25,7 +25,7 @@ type ConnectionHandlers struct { Concurrency int `json:"concurrency"` KeepAlive time.Duration `json:"keepAlive"` HandshakeTimeout time.Duration `json:"handshakeTimeout"` - TLSConfig *tls.Config + TLSConfig *tls.Config `json:"-"` validated atomic.Value } diff --git a/socket/net/client/connector.go b/socket/net/client/connector.go index 654f5eb..4f62af1 100644 --- a/socket/net/client/connector.go +++ b/socket/net/client/connector.go @@ -18,9 +18,9 @@ type Connectors struct { socket.ClientConnHandlers socket.ReadWriteHandlers - Network string `json:"network"` - Address string `json:"address"` - LocalAddress net.Addr + Network string `json:"network"` + Address string `json:"address"` + LocalAddress net.Addr `json:"-"` stopChan chan struct{} stopWg sync.WaitGroup diff --git a/socket/web/client/connector.go b/socket/web/client/connector.go index 9cca058..736069a 100644 --- a/socket/web/client/connector.go +++ b/socket/web/client/connector.go @@ -32,24 +32,24 @@ type Connectors struct { URL string `json:"url"` - RequestHeader http.Header - Subprotocols []string `json:"subprotocols"` + RequestHeader http.Header `json:"-"` + Subprotocols []string `json:"subprotocols"` // Jar specifies the cookie jar. // If Jar is nil, cookies are not sent in requests and ignored // 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 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 // Request. If the function returns a non-nil error, the // request is aborted with the provided error. // 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 diff --git a/web/fasthttp/server-handler.go b/web/fasthttp/server-handler.go index 059ad7b..945a5b0 100644 --- a/web/fasthttp/server-handler.go +++ b/web/fasthttp/server-handler.go @@ -26,7 +26,7 @@ type ServerHandler interface { type ServerHandlers struct { web.ServerHandlers - ErrorServelt Servlet + ErrorServelt Servlet `json:"-"` // path = context only. // ex) /auth => /auth, /auth/member => /auth