MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / DialTLS

Function DialTLS

IceFireDB-PubSub/test/proto/client.go:27–37  ·  view source on GitHub ↗
(addr string, cfg *tls.Config)

Source from the content-addressed store, hash-verified

25}
26
27func DialTLS(addr string, cfg *tls.Config) (*Client, error) {
28 c, err := tls.Dial("tcp", addr, cfg)
29 if err != nil {
30 return nil, err
31 }
32
33 return &Client{
34 c: c,
35 r: bufio.NewReader(c),
36 }, nil
37}
38
39func (c *Client) Close() error {
40 return c.c.Close()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected