Debian Codegraph @

connection_helper.go

raw symbols SCIP
1 package rethinkdbscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/
2
3 import (
4 "golang.org/x/net/contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/"
5 "ioscip-go gomod github.com/golang/go/src go1.14 io/"
6 )
7
8 // Write 'data' to conn
9 func (c *Connectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#) writeDatascip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#writeData().(data []byte) error {
10 _, err := c.Connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Conn..Writescip-go gomod github.com/golang/go/src go1.14 net/Conn#Write().(data[:])
11
12 return err
13 }
14
15 func (c *Connectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#) readscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#read().(buf []byte) (total int, err error) {
16 return ioscip-go gomod github.com/golang/go/src go1.14 io/.ReadFullscip-go gomod github.com/golang/go/src go1.14 io/ReadFull().(c.Connscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#Conn., buf)
17 }
18
19 func (c *Connectionscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#) contextFromConnectionOptsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#contextFromConnectionOpts().() contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Context# {
20 // back compatibility
21 min := c.optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#opts..ReadTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#ReadTimeout.
22 if c.optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#opts..WriteTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#WriteTimeout. < min {
23 min = c.optsscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/Connection#opts..WriteTimeoutscip-go gomod gopkg.in/rethinkdb/rethinkdb-go.v6 . `gopkg.in/rethinkdb/rethinkdb-go.v6`/ConnectOpts#WriteTimeout.
24 }
25 if min == 0 {
26 return contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().()
27 }
28 ctx, _ := contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.WithTimeoutscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/WithTimeout().(contextscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/.Backgroundscip-go gomod golang.org/x/net eb5bcb51f2a3 `golang.org/x/net/context`/Background().(), min)
29 return ctx
30 }