SYMBOL INDEX (373 symbols across 32 files) FILE: client.go function NewClient (line 39) | func NewClient(netConn net.Conn, u *url.URL, requestHeader http.Header, ... type Dialer (line 53) | type Dialer struct method Dial (line 131) | func (d *Dialer) Dial(urlStr string, requestHeader http.Header) (*Conn... method DialContext (line 175) | func (d *Dialer) DialContext(ctx context.Context, urlStr string, reque... method netDialFn (line 406) | func (d *Dialer) netDialFn(ctx context.Context, proxyURL *url.URL, bac... method netDialFromURL (line 426) | func (d *Dialer) netDialFromURL(u *url.URL) netDialerFunc { function hostPortNoPort (line 137) | func hostPortNoPort(u *url.URL) (hostPort, hostNoPort string) { function netDialWithTLSHandshake (line 451) | func netDialWithTLSHandshake(netDial netDialerFunc, tlsConfig *tls.Confi... function netDialWithDeadline (line 485) | func netDialWithDeadline(netDial netDialerFunc, deadline time.Time) netD... function cloneTLSConfig (line 500) | func cloneTLSConfig(cfg *tls.Config) *tls.Config { function doHandshake (line 507) | func doHandshake(ctx context.Context, tlsConn *tls.Conn, cfg *tls.Config... FILE: client_proxy_server_test.go constant subprotocolV1 (line 34) | subprotocolV1 = "subprotocol-version-1" constant subprotocolV2 (line 35) | subprotocolV2 = "subprotocol-version-2" function TestHTTPProxyAndBackend (line 42) | func TestHTTPProxyAndBackend(t *testing.T) { function TestHTTPProxyWithNetDial (line 79) | func TestHTTPProxyWithNetDial(t *testing.T) { function TestHTTPProxyWithNetDialContext (line 124) | func TestHTTPProxyWithNetDialContext(t *testing.T) { function TestHTTPProxyWithHTTPSBackend (line 170) | func TestHTTPProxyWithHTTPSBackend(t *testing.T) { function TestHTTPSProxyAndBackend (line 218) | func TestHTTPSProxyAndBackend(t *testing.T) { function TestHTTPSProxyUsingNetDial (line 256) | func TestHTTPSProxyUsingNetDial(t *testing.T) { function TestHTTPSProxyUsingNetDialContext (line 302) | func TestHTTPSProxyUsingNetDialContext(t *testing.T) { function TestHTTPSProxyUsingNetDialTLSContext (line 348) | func TestHTTPSProxyUsingNetDialTLSContext(t *testing.T) { function TestHTTPSProxyHTTPBackend (line 407) | func TestHTTPSProxyHTTPBackend(t *testing.T) { function TestHTTPSProxyUsingNetDialTLSContextWithHTTPBackend (line 445) | func TestHTTPSProxyUsingNetDialTLSContextWithHTTPBackend(t *testing.T) { function TestTLSValidationErrors (line 485) | func TestTLSValidationErrors(t *testing.T) { function TestProxyFnErrorIsPropagated (line 536) | func TestProxyFnErrorIsPropagated(t *testing.T) { function TestProxyFnNilMeansNoProxy (line 559) | func TestProxyFnNilMeansNoProxy(t *testing.T) { type counter (line 596) | type counter interface type closer (line 602) | type closer interface type testServer (line 607) | type testServer struct method numCalls (line 612) | func (ts *testServer) numCalls() int64 { method increment (line 616) | func (ts *testServer) increment() { method Close (line 620) | func (ts *testServer) Close() { function newWebsocketServer (line 668) | func newWebsocketServer(tlsServer bool) (closer, *url.URL, error) { function newProxyServer (line 736) | func newProxyServer(tlsServer bool) (counter, *url.URL, error) { function tlsConfig (line 764) | func tlsConfig(websocketTLS bool, proxyTLS bool) *tls.Config { constant randomDataSize (line 783) | randomDataSize = 128 * 1024 function sendReceiveData (line 785) | func sendReceiveData(t *testing.T, wsConn *Conn) { FILE: client_server_test.go type cstHandler (line 49) | type cstHandler struct method ServeHTTP (line 88) | func (t cstHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) { type cstServer (line 54) | type cstServer struct method Close (line 66) | func (s *cstServer) Close() { constant cstPath (line 61) | cstPath = "/a/b" constant cstRawQuery (line 62) | cstRawQuery = "x=y" constant cstRequestURI (line 63) | cstRequestURI = cstPath + "?" + cstRawQuery function newServer (line 72) | func newServer(t *testing.T) *cstServer { function newTLSServer (line 80) | func newTLSServer(t *testing.T) *cstServer { function makeWsProto (line 143) | func makeWsProto(s string) string { function sendRecv (line 147) | func sendRecv(t *testing.T, ws *Conn) { function TestProxyDial (line 167) | func TestProxyDial(t *testing.T) { function TestProxyAuthorizationDial (line 205) | func TestProxyAuthorizationDial(t *testing.T) { function TestDial (line 245) | func TestDial(t *testing.T) { function TestDialCookieJar (line 257) | func TestDialCookieJar(t *testing.T) { function rootCAs (line 305) | func rootCAs(t *testing.T, s *httptest.Server) *x509.CertPool { function TestDialTLS (line 319) | func TestDialTLS(t *testing.T) { function TestDialTimeout (line 333) | func TestDialTimeout(t *testing.T) { type requireDeadlineNetConn (line 348) | type requireDeadlineNetConn struct method SetDeadline (line 355) | func (c *requireDeadlineNetConn) SetDeadline(t time.Time) error { method SetReadDeadline (line 361) | func (c *requireDeadlineNetConn) SetReadDeadline(t time.Time) error { method SetWriteDeadline (line 366) | func (c *requireDeadlineNetConn) SetWriteDeadline(t time.Time) error { method Write (line 371) | func (c *requireDeadlineNetConn) Write(p []byte) (int, error) { method Read (line 378) | func (c *requireDeadlineNetConn) Read(p []byte) (int, error) { method Close (line 385) | func (c *requireDeadlineNetConn) Close() error { return c.c.Cl... method LocalAddr (line 386) | func (c *requireDeadlineNetConn) LocalAddr() net.Addr { return c.c.Lo... method RemoteAddr (line 387) | func (c *requireDeadlineNetConn) RemoteAddr() net.Addr { return c.c.Re... function TestHandshakeTimeout (line 389) | func TestHandshakeTimeout(t *testing.T) { function TestHandshakeTimeoutInContext (line 405) | func TestHandshakeTimeoutInContext(t *testing.T) { function TestDialBadScheme (line 426) | func TestDialBadScheme(t *testing.T) { function TestDialBadOrigin (line 437) | func TestDialBadOrigin(t *testing.T) { function TestDialBadHeader (line 454) | func TestDialBadHeader(t *testing.T) { function TestBadMethod (line 473) | func TestBadMethod(t *testing.T) { function TestNoUpgrade (line 501) | func TestNoUpgrade(t *testing.T) { function TestDialExtraTokensInRespHeaders (line 532) | func TestDialExtraTokensInRespHeaders(t *testing.T) { function TestHandshake (line 549) | func TestHandshake(t *testing.T) { function TestRespOnBadHandshake (line 575) | func TestRespOnBadHandshake(t *testing.T) { type testLogWriter (line 609) | type testLogWriter struct method Write (line 613) | func (w testLogWriter) Write(p []byte) (int, error) { function TestHost (line 619) | func TestHost(t *testing.T) { function TestDialCompression (line 800) | func TestDialCompression(t *testing.T) { function TestSocksProxyDial (line 814) | func TestSocksProxyDial(t *testing.T) { function TestTracingDialWithContext (line 893) | func TestTracingDialWithContext(t *testing.T) { function TestEmptyTracingDialWithContext (line 952) | func TestEmptyTracingDialWithContext(t *testing.T) { function TestNetDialConnect (line 973) | func TestNetDialConnect(t *testing.T) { function TestNextProtos (line 1148) | func TestNextProtos(t *testing.T) { type dataBeforeHandshakeResponseWriter (line 1184) | type dataBeforeHandshakeResponseWriter struct method Hijack (line 1197) | func (w dataBeforeHandshakeResponseWriter) Hijack() (net.Conn, *bufio.... type dataBeforeHandshakeConnection (line 1188) | type dataBeforeHandshakeConnection struct method Read (line 1193) | func (c *dataBeforeHandshakeConnection) Read(p []byte) (int, error) { function TestDataReceivedBeforeHandshake (line 1220) | func TestDataReceivedBeforeHandshake(t *testing.T) { FILE: client_test.go function TestHostPortNoPort (line 22) | func TestHostPortNoPort(t *testing.T) { FILE: compression.go constant minCompressionLevel (line 16) | minCompressionLevel = -2 constant maxCompressionLevel (line 17) | maxCompressionLevel = flate.BestCompression constant defaultCompressionLevel (line 18) | defaultCompressionLevel = 1 function decompressNoContextTakeover (line 28) | func decompressNoContextTakeover(r io.Reader) io.ReadCloser { function isValidCompressionLevel (line 44) | func isValidCompressionLevel(level int) bool { function compressNoContextTakeover (line 48) | func compressNoContextTakeover(w io.WriteCloser, level int) io.WriteClos... type truncWriter (line 62) | type truncWriter struct method Write (line 68) | func (w *truncWriter) Write(p []byte) (int, error) { type flateWriteWrapper (line 96) | type flateWriteWrapper struct method Write (line 102) | func (w *flateWriteWrapper) Write(p []byte) (int, error) { method Close (line 109) | func (w *flateWriteWrapper) Close() error { type flateReadWrapper (line 126) | type flateReadWrapper struct method Read (line 130) | func (r *flateReadWrapper) Read(p []byte) (int, error) { method Close (line 144) | func (r *flateReadWrapper) Close() error { FILE: compression_test.go type nopCloser (line 10) | type nopCloser struct method Close (line 12) | func (nopCloser) Close() error { return nil } function TestTruncWriter (line 14) | func TestTruncWriter(t *testing.T) { function textMessages (line 34) | func textMessages(num int) [][]byte { function BenchmarkWriteNoCompression (line 43) | func BenchmarkWriteNoCompression(b *testing.B) { function BenchmarkWriteWithCompression (line 54) | func BenchmarkWriteWithCompression(b *testing.B) { function TestValidCompressionLevel (line 67) | func TestValidCompressionLevel(t *testing.T) { FILE: conn.go constant finalBit (line 23) | finalBit = 1 << 7 constant rsv1Bit (line 24) | rsv1Bit = 1 << 6 constant rsv2Bit (line 25) | rsv2Bit = 1 << 5 constant rsv3Bit (line 26) | rsv3Bit = 1 << 4 constant maskBit (line 29) | maskBit = 1 << 7 constant maxFrameHeaderSize (line 31) | maxFrameHeaderSize = 2 + 8 + 4 constant maxControlFramePayloadSize (line 32) | maxControlFramePayloadSize = 125 constant writeWait (line 34) | writeWait = time.Second constant defaultReadBufferSize (line 36) | defaultReadBufferSize = 4096 constant defaultWriteBufferSize (line 37) | defaultWriteBufferSize = 4096 constant continuationFrame (line 39) | continuationFrame = 0 constant noFrame (line 40) | noFrame = -1 constant CloseNormalClosure (line 45) | CloseNormalClosure = 1000 constant CloseGoingAway (line 46) | CloseGoingAway = 1001 constant CloseProtocolError (line 47) | CloseProtocolError = 1002 constant CloseUnsupportedData (line 48) | CloseUnsupportedData = 1003 constant CloseNoStatusReceived (line 49) | CloseNoStatusReceived = 1005 constant CloseAbnormalClosure (line 50) | CloseAbnormalClosure = 1006 constant CloseInvalidFramePayloadData (line 51) | CloseInvalidFramePayloadData = 1007 constant ClosePolicyViolation (line 52) | ClosePolicyViolation = 1008 constant CloseMessageTooBig (line 53) | CloseMessageTooBig = 1009 constant CloseMandatoryExtension (line 54) | CloseMandatoryExtension = 1010 constant CloseInternalServerErr (line 55) | CloseInternalServerErr = 1011 constant CloseServiceRestart (line 56) | CloseServiceRestart = 1012 constant CloseTryAgainLater (line 57) | CloseTryAgainLater = 1013 constant CloseTLSHandshake (line 58) | CloseTLSHandshake = 1015 constant TextMessage (line 65) | TextMessage = 1 constant BinaryMessage (line 68) | BinaryMessage = 2 constant CloseMessage (line 73) | CloseMessage = 8 constant PingMessage (line 77) | PingMessage = 9 constant PongMessage (line 81) | PongMessage = 10 type netError (line 93) | type netError struct method Error (line 99) | func (e *netError) Error() string { return e.msg } method Temporary (line 100) | func (e *netError) Temporary() bool { return e.temporary } method Timeout (line 101) | func (e *netError) Timeout() bool { return e.timeout } type CloseError (line 104) | type CloseError struct method Error (line 112) | func (e *CloseError) Error() string { function IsCloseError (line 150) | func IsCloseError(err error, codes ...int) bool { function IsUnexpectedCloseError (line 163) | func IsUnexpectedCloseError(err error, expectedCodes ...int) bool { function newMaskKey (line 189) | func newMaskKey() [4]byte { function isControl (line 195) | func isControl(frameType int) bool { function isData (line 199) | func isData(frameType int) bool { function isValidReceivedCloseCode (line 222) | func isValidReceivedCloseCode(code int) bool { type BufferPool (line 228) | type BufferPool interface type writePoolData (line 238) | type writePoolData struct type Conn (line 241) | type Conn struct method setReadRemaining (line 327) | func (c *Conn) setReadRemaining(n int64) error { method Subprotocol (line 337) | func (c *Conn) Subprotocol() string { method Close (line 343) | func (c *Conn) Close() error { method LocalAddr (line 348) | func (c *Conn) LocalAddr() net.Addr { method RemoteAddr (line 353) | func (c *Conn) RemoteAddr() net.Addr { method writeFatal (line 359) | func (c *Conn) writeFatal(err error) error { method read (line 368) | func (c *Conn) read(n int) ([]byte, error) { method write (line 379) | func (c *Conn) write(frameType int, deadline time.Time, buf0, buf1 []b... method writeBufs (line 407) | func (c *Conn) writeBufs(bufs ...[]byte) error { method WriteControl (line 415) | func (c *Conn) WriteControl(messageType int, data []byte, deadline tim... method beginMessage (line 484) | func (c *Conn) beginMessage(mw *messageWriter, messageType int) error { method NextWriter (line 527) | func (c *Conn) NextWriter(messageType int) (io.WriteCloser, error) { method WritePreparedMessage (line 744) | func (c *Conn) WritePreparedMessage(pm *PreparedMessage) error { method WriteMessage (line 767) | func (c *Conn) WriteMessage(messageType int, data []byte) error { method SetWriteDeadline (line 796) | func (c *Conn) SetWriteDeadline(t time.Time) error { method advanceFrame (line 803) | func (c *Conn) advanceFrame() (int, error) { method handleProtocolError (line 989) | func (c *Conn) handleProtocolError(message string) error { method NextReader (line 1009) | func (c *Conn) NextReader() (messageType int, r io.Reader, err error) { method ReadMessage (line 1102) | func (c *Conn) ReadMessage() (messageType int, p []byte, err error) { method SetReadDeadline (line 1116) | func (c *Conn) SetReadDeadline(t time.Time) error { method SetReadLimit (line 1123) | func (c *Conn) SetReadLimit(limit int64) { method CloseHandler (line 1128) | func (c *Conn) CloseHandler() func(code int, text string) error { method SetCloseHandler (line 1146) | func (c *Conn) SetCloseHandler(h func(code int, text string) error) { method PingHandler (line 1159) | func (c *Conn) PingHandler() func(appData string) error { method SetPingHandler (line 1170) | func (c *Conn) SetPingHandler(h func(appData string) error) { method PongHandler (line 1182) | func (c *Conn) PongHandler() func(appData string) error { method SetPongHandler (line 1193) | func (c *Conn) SetPongHandler(h func(appData string) error) { method NetConn (line 1203) | func (c *Conn) NetConn() net.Conn { method UnderlyingConn (line 1210) | func (c *Conn) UnderlyingConn() net.Conn { method EnableWriteCompression (line 1217) | func (c *Conn) EnableWriteCompression(enable bool) { method SetCompressionLevel (line 1225) | func (c *Conn) SetCompressionLevel(level int) error { function newConn (line 284) | func newConn(conn net.Conn, isServer bool, readBufferSize, writeBufferSi... type messageWriter (line 541) | type messageWriter struct method endMessage (line 549) | func (w *messageWriter) endMessage(err error) error { method flushFrame (line 565) | func (w *messageWriter) flushFrame(final bool, extra []byte) error { method ncopy (line 652) | func (w *messageWriter) ncopy(max int) (int, error) { method Write (line 666) | func (w *messageWriter) Write(p []byte) (int, error) { method WriteString (line 693) | func (w *messageWriter) WriteString(p string) (int, error) { method ReadFrom (line 711) | func (w *messageWriter) ReadFrom(r io.Reader) (nn int64, err error) { method Close (line 736) | func (w *messageWriter) Close() error { type messageReader (line 1047) | type messageReader struct method Read (line 1049) | func (r *messageReader) Read(b []byte) (int, error) { method Close (line 1096) | func (r *messageReader) Close() error { function FormatCloseMessage (line 1235) | func FormatCloseMessage(closeCode int, text string) []byte { FILE: conn_broadcast_test.go type broadcastBench (line 18) | type broadcastBench struct method makeConns (line 57) | func (b *broadcastBench) makeConns(numConns int) { method close (line 89) | func (b *broadcastBench) close() { method broadcastOnce (line 93) | func (b *broadcastBench) broadcastOnce(msg *broadcastMessage) { type broadcastMessage (line 28) | type broadcastMessage struct type broadcastConn (line 33) | type broadcastConn struct function newBroadcastConn (line 38) | func newBroadcastConn(c *Conn) *broadcastConn { function newBroadcastBench (line 45) | func newBroadcastBench(usePrepared, compression bool) *broadcastBench { function BenchmarkBroadcast (line 100) | func BenchmarkBroadcast(b *testing.B) { FILE: conn_test.go type fakeNetConn (line 23) | type fakeNetConn struct method Close (line 28) | func (c fakeNetConn) Close() error { return nil } method LocalAddr (line 29) | func (c fakeNetConn) LocalAddr() net.Addr { return loca... method RemoteAddr (line 30) | func (c fakeNetConn) RemoteAddr() net.Addr { return remo... method SetDeadline (line 31) | func (c fakeNetConn) SetDeadline(t time.Time) error { return nil } method SetReadDeadline (line 32) | func (c fakeNetConn) SetReadDeadline(t time.Time) error { return nil } method SetWriteDeadline (line 33) | func (c fakeNetConn) SetWriteDeadline(t time.Time) error { return nil } type fakeAddr (line 35) | type fakeAddr method Network (line 42) | func (a fakeAddr) Network() string { method String (line 46) | func (a fakeAddr) String() string { function newTestConn (line 52) | func newTestConn(r io.Reader, w io.Writer, isServer bool) *Conn { function TestFraming (line 56) | func TestFraming(t *testing.T) { function TestWriteControlDeadline (line 151) | func TestWriteControlDeadline(t *testing.T) { function TestConcurrencyWriteControl (line 167) | func TestConcurrencyWriteControl(t *testing.T) { function TestControl (line 192) | func TestControl(t *testing.T) { type simpleBufferPool (line 229) | type simpleBufferPool struct method Get (line 233) | func (p *simpleBufferPool) Get() interface{} { method Put (line 239) | func (p *simpleBufferPool) Put(v interface{}) { function TestWriteBufferPool (line 243) | func TestWriteBufferPool(t *testing.T) { function TestWriteBufferPoolSync (line 321) | func TestWriteBufferPoolSync(t *testing.T) { type errorWriter (line 343) | type errorWriter struct method Write (line 345) | func (ew errorWriter) Write(p []byte) (int, error) { return 0, errors.... function TestWriteBufferPoolError (line 349) | func TestWriteBufferPoolError(t *testing.T) { function TestCloseFrameBeforeFinalMessageFrame (line 392) | func TestCloseFrameBeforeFinalMessageFrame(t *testing.T) { function TestEOFWithinFrame (line 420) | func TestEOFWithinFrame(t *testing.T) { function TestEOFBeforeFinalFrame (line 455) | func TestEOFBeforeFinalFrame(t *testing.T) { function TestWriteAfterMessageWriterClose (line 479) | func TestWriteAfterMessageWriterClose(t *testing.T) { function TestReadLimit (line 505) | func TestReadLimit(t *testing.T) { function TestAddrs (line 595) | func TestAddrs(t *testing.T) { function TestDeprecatedUnderlyingConn (line 605) | func TestDeprecatedUnderlyingConn(t *testing.T) { function TestNetConn (line 615) | func TestNetConn(t *testing.T) { function TestBufioReadBytes (line 625) | func TestBufioReadBytes(t *testing.T) { function TestCloseError (line 665) | func TestCloseError(t *testing.T) { function TestUnexpectedCloseErrors (line 685) | func TestUnexpectedCloseErrors(t *testing.T) { type blockingWriter (line 694) | type blockingWriter struct method Write (line 698) | func (w blockingWriter) Write(p []byte) (int, error) { function TestConcurrentWritePanic (line 706) | func TestConcurrentWritePanic(t *testing.T) { type failingReader (line 727) | type failingReader struct method Read (line 729) | func (r failingReader) Read(p []byte) (int, error) { function TestFailedConnectionReadPanic (line 733) | func TestFailedConnectionReadPanic(t *testing.T) { FILE: example_test.go function ExampleIsUnexpectedCloseError (line 28) | func ExampleIsUnexpectedCloseError() { function processMessage (line 41) | func processMessage(mt int, p []byte) {} function TestX (line 45) | func TestX(t *testing.T) {} FILE: examples/autobahn/server.go function echoCopy (line 30) | func echoCopy(w http.ResponseWriter, r *http.Request, writerOnly bool) { function echoCopyWriterOnly (line 78) | func echoCopyWriterOnly(w http.ResponseWriter, r *http.Request) { function echoCopyFull (line 82) | func echoCopyFull(w http.ResponseWriter, r *http.Request) { function echoReadAll (line 88) | func echoReadAll(w http.ResponseWriter, r *http.Request, writeMessage, w... function echoReadAllWriter (line 146) | func echoReadAllWriter(w http.ResponseWriter, r *http.Request) { function echoReadAllWriteMessage (line 150) | func echoReadAllWriteMessage(w http.ResponseWriter, r *http.Request) { function echoReadAllWritePreparedMessage (line 154) | func echoReadAllWritePreparedMessage(w http.ResponseWriter, r *http.Requ... function serveHome (line 158) | func serveHome(w http.ResponseWriter, r *http.Request) { function main (line 173) | func main() { type validator (line 187) | type validator struct method Read (line 195) | func (r *validator) Read(p []byte) (int, error) { constant utf8Accept (line 252) | utf8Accept = 0 constant utf8Reject (line 253) | utf8Reject = 1 function decode (line 256) | func decode(state int, x rune, b byte) (int, rune) { FILE: examples/chat/client.go constant writeWait (line 18) | writeWait = 10 * time.Second constant pongWait (line 21) | pongWait = 60 * time.Second constant pingPeriod (line 24) | pingPeriod = (pongWait * 9) / 10 constant maxMessageSize (line 27) | maxMessageSize = 512 type Client (line 41) | type Client struct method readPump (line 56) | func (c *Client) readPump() { method writePump (line 82) | func (c *Client) writePump() { function serveWs (line 124) | func serveWs(hub *Hub, w http.ResponseWriter, r *http.Request) { FILE: examples/chat/hub.go type Hub (line 9) | type Hub struct method run (line 32) | func (h *Hub) run() { function newHub (line 23) | func newHub() *Hub { FILE: examples/chat/main.go function serveHome (line 15) | func serveHome(w http.ResponseWriter, r *http.Request) { function main (line 28) | func main() { FILE: examples/command/main.go constant writeWait (line 27) | writeWait = 10 * time.Second constant maxMessageSize (line 30) | maxMessageSize = 8192 constant pongWait (line 33) | pongWait = 60 * time.Second constant pingPeriod (line 36) | pingPeriod = (pongWait * 9) / 10 constant closeGracePeriod (line 39) | closeGracePeriod = 10 * time.Second function pumpStdin (line 42) | func pumpStdin(ws *websocket.Conn, w io.Writer) { function pumpStdout (line 59) | func pumpStdout(ws *websocket.Conn, r io.Reader, done chan struct{}) { function ping (line 81) | func ping(ws *websocket.Conn, done chan struct{}) { function internalError (line 96) | func internalError(ws *websocket.Conn, msg string, err error) { function serveWs (line 103) | func serveWs(w http.ResponseWriter, r *http.Request) { function serveHome (line 168) | func serveHome(w http.ResponseWriter, r *http.Request) { function main (line 180) | func main() { FILE: examples/echo/client.go function main (line 23) | func main() { FILE: examples/echo/server.go function echo (line 23) | func echo(w http.ResponseWriter, r *http.Request) { function home (line 45) | func home(w http.ResponseWriter, r *http.Request) { function main (line 49) | func main() { FILE: examples/filewatch/main.go constant writeWait (line 21) | writeWait = 10 * time.Second constant pongWait (line 24) | pongWait = 60 * time.Second constant pingPeriod (line 27) | pingPeriod = (pongWait * 9) / 10 constant filePeriod (line 30) | filePeriod = 10 * time.Second function readFileIfModified (line 43) | func readFileIfModified(lastMod time.Time) ([]byte, time.Time, error) { function reader (line 58) | func reader(ws *websocket.Conn) { function writer (line 71) | func writer(ws *websocket.Conn, lastMod time.Time) { function serveWs (line 112) | func serveWs(w http.ResponseWriter, r *http.Request) { function serveHome (line 130) | func serveHome(w http.ResponseWriter, r *http.Request) { function main (line 157) | func main() { constant homeHTML (line 170) | homeHTML = ` FILE: join.go function JoinMessages (line 15) | func JoinMessages(c *Conn, term string) io.Reader { type joinReader (line 19) | type joinReader struct method Read (line 25) | func (r *joinReader) Read(p []byte) (int, error) { FILE: join_test.go function TestJoinMessages (line 14) | func TestJoinMessages(t *testing.T) { FILE: json.go function WriteJSON (line 15) | func WriteJSON(c *Conn, v interface{}) error { method WriteJSON (line 23) | func (c *Conn) WriteJSON(v interface{}) error { function ReadJSON (line 40) | func ReadJSON(c *Conn, v interface{}) error { method ReadJSON (line 49) | func (c *Conn) ReadJSON(v interface{}) error { FILE: json_test.go function TestJSON (line 15) | func TestJSON(t *testing.T) { function TestPartialJSONRead (line 40) | func TestPartialJSONRead(t *testing.T) { function TestDeprecatedJSON (line 93) | func TestDeprecatedJSON(t *testing.T) { FILE: mask.go constant wordSize (line 12) | wordSize = int(unsafe.Sizeof(uintptr(0))) function maskBytes (line 14) | func maskBytes(key [4]byte, pos int, b []byte) int { FILE: mask_safe.go function maskBytes (line 10) | func maskBytes(key [4]byte, pos int, b []byte) int { FILE: mask_test.go function maskBytesByByte (line 14) | func maskBytesByByte(key [4]byte, pos int, b []byte) int { function notzero (line 22) | func notzero(b []byte) int { function TestMaskBytes (line 31) | func TestMaskBytes(t *testing.T) { function BenchmarkMaskBytes (line 47) | func BenchmarkMaskBytes(b *testing.B) { FILE: prepared.go type PreparedMessage (line 19) | type PreparedMessage struct method frame (line 62) | func (pm *PreparedMessage) frame(key prepareKey) (int, []byte, error) { type prepareKey (line 27) | type prepareKey struct type preparedFrame (line 34) | type preparedFrame struct function NewPreparedMessage (line 43) | func NewPreparedMessage(messageType int, data []byte) (*PreparedMessage,... type prepareConn (line 96) | type prepareConn struct method Write (line 101) | func (pc *prepareConn) Write(p []byte) (int, error) { return pc... method SetWriteDeadline (line 102) | func (pc *prepareConn) SetWriteDeadline(t time.Time) error { return nil } FILE: prepared_test.go function TestPreparedMessage (line 35) | func TestPreparedMessage(t *testing.T) { FILE: proxy.go type netDialerFunc (line 21) | type netDialerFunc method Dial (line 23) | func (fn netDialerFunc) Dial(network, addr string) (net.Conn, error) { method DialContext (line 27) | func (fn netDialerFunc) DialContext(ctx context.Context, network, addr... function proxyFromURL (line 31) | func proxyFromURL(proxyURL *url.URL, forwardDial netDialerFunc) (netDial... type httpProxyDialer (line 47) | type httpProxyDialer struct method DialContext (line 52) | func (hpd *httpProxyDialer) DialContext(ctx context.Context, network s... FILE: server.go type HandshakeError (line 17) | type HandshakeError struct method Error (line 21) | func (e HandshakeError) Error() string { return e.message } type Upgrader (line 27) | type Upgrader struct method returnError (line 76) | func (u *Upgrader) returnError(w http.ResponseWriter, r *http.Request,... method selectSubprotocol (line 100) | func (u *Upgrader) selectSubprotocol(r *http.Request, responseHeader h... method Upgrade (line 124) | func (u *Upgrader) Upgrade(w http.ResponseWriter, r *http.Request, res... function checkSameOrigin (line 88) | func checkSameOrigin(r *http.Request) bool { function Upgrade (line 316) | func Upgrade(w http.ResponseWriter, r *http.Request, responseHeader http... function Subprotocols (line 330) | func Subprotocols(r *http.Request) []string { function IsWebSocketUpgrade (line 344) | func IsWebSocketUpgrade(r *http.Request) bool { type brNetConn (line 349) | type brNetConn struct method Read (line 354) | func (b *brNetConn) Read(p []byte) (n int, err error) { method NetConn (line 370) | func (b *brNetConn) NetConn() net.Conn { FILE: server_test.go function TestSubprotocols (line 31) | func TestSubprotocols(t *testing.T) { function TestIsWebSocketUpgrade (line 50) | func TestIsWebSocketUpgrade(t *testing.T) { function TestSubProtocolSelection (line 59) | func TestSubProtocolSelection(t *testing.T) { function TestCheckSameOrigin (line 98) | func TestCheckSameOrigin(t *testing.T) { type reuseTestResponseWriter (line 107) | type reuseTestResponseWriter struct method Hijack (line 112) | func (resp *reuseTestResponseWriter) Hijack() (net.Conn, *bufio.ReadWr... function xTestBufioReuse (line 124) | func xTestBufioReuse(t *testing.T) { function TestHijack_NotSupported (line 153) | func TestHijack_NotSupported(t *testing.T) { FILE: util.go function computeAcceptKey (line 19) | func computeAcceptKey(challengeKey string) string { function generateChallengeKey (line 26) | func generateChallengeKey() (string, error) { function skipSpace (line 117) | func skipSpace(s string) (rest string) { function nextToken (line 129) | func nextToken(s string) (token, rest string) { function nextTokenOrQuoted (line 141) | func nextTokenOrQuoted(s string) (value string, rest string) { function equalASCIIFold (line 178) | func equalASCIIFold(s, t string) bool { function tokenListContainsValue (line 202) | func tokenListContainsValue(header http.Header, name string, value strin... function parseExtensions (line 228) | func parseExtensions(header http.Header) []map[string]string { function isValidChallengeKey (line 286) | func isValidChallengeKey(s string) bool { FILE: util_test.go function TestEqualASCIIFold (line 23) | func TestEqualASCIIFold(t *testing.T) { function TestTokenListContainsValue (line 46) | func TestTokenListContainsValue(t *testing.T) { function TestIsValidChallengeKey (line 66) | func TestIsValidChallengeKey(t *testing.T) { function TestParseExtensions (line 107) | func TestParseExtensions(t *testing.T) {