MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / Dial

Function Dial

crypto/etls/conn.go:60–68  ·  view source on GitHub ↗

Dial connects to a address with a Cipher address should be in the form of host:port.

(network, address string, cipher *Cipher)

Source from the content-addressed store, hash-verified

58// Dial connects to a address with a Cipher
59// address should be in the form of host:port.
60func Dial(network, address string, cipher *Cipher) (c *CryptoConn, err error) {
61 conn, err := net.DialTimeout(network, address, conf.TCPDialTimeout)
62 if err != nil {
63 log.WithField("addr", address).WithError(err).Error("connect failed")
64 return
65 }
66 c = NewConn(conn, cipher)
67 return
68}
69
70// Read iv and Encrypted data.
71func (c *CryptoConn) Read(b []byte) (n int, err error) {

Callers 8

PrepareMethod · 0.92
CommitMethod · 0.92
RollbackMethod · 0.92
TestAcceptFuncFunction · 0.92
clientFunction · 0.70
clientComplexFunction · 0.70
TestCryptoConn_RWFunction · 0.70
TestDialTimeoutFunction · 0.70

Calls 4

WithFieldFunction · 0.92
NewConnFunction · 0.85
ErrorMethod · 0.80
WithErrorMethod · 0.80

Tested by 8

PrepareMethod · 0.74
CommitMethod · 0.74
RollbackMethod · 0.74
TestAcceptFuncFunction · 0.74
clientFunction · 0.56
clientComplexFunction · 0.56
TestCryptoConn_RWFunction · 0.56
TestDialTimeoutFunction · 0.56