func OpenForSender(cfg RawConfig, opener SenderOpener) (*Client, error) {
	if err := cfg.Validate(); err != nil {
		return nil, errors.Trace(err)
	}

	sender, err := open(cfg, opener)
	if err != nil {
		return nil, errors.Trace(err)
	}

	client := &Client{
		Sender: sender,
	}
	return client, nil
}
// OpenForSender connects to a remote syslog host and wraps that
// connection in a new client.
OpenForSender connects to a remote syslog host and wraps that
connection in a new client.
// OpenForSender connects to a remote syslog host and wraps that // connection in a new client .
func OpenForSender(cfg RawConfig, opener SenderOpener) (*Client, error) {
	if err := cfg.Validate(); err != nil {
		return nil, errors.Trace(err)
	}
	sender, err := open(cfg, opener)
	if err != nil {
		return nil, errors.Trace(err)
	}
	client := &Client{
		Sender: sender,
	}
	return client, nil
}
func OpenForSender ( cfg RawConfig , opener SenderOpener ) ( * Client , error ) { if err := cfg . Validate ( ) ; err != nil { return nil , errors . Trace ( err ) } sender , err := open ( cfg , opener ) if err != nil { return nil , errors . Trace ( err ) } client := & Client { Sender : sender , } return client , nil }
OpenForSender connects to a remote syslog host and wraps that
connection in a new client.
OpenForSender connects to a remote syslog host and wraps that connection in a new client .