NewClient returns a new Client using given [Config] configuration parameters.
(cfg *Config)
| 40 | // NewClient returns a new Client using given [Config] configuration |
| 41 | // parameters. |
| 42 | func NewClient(cfg *Config) *Client { |
| 43 | cl := &Client{Config: *cfg} |
| 44 | return cl |
| 45 | } |
| 46 | |
| 47 | // Close terminates any open Sessions and then closes |
| 48 | // the Client connection. |