func NewTLSEndpoint(host string, port string) *TLSEndpoint {
	if port == "" {
		port = DefaultPortNumber
	}
	return &TLSEndpoint{
		Hostname: host,
		Port:     port,
	}
}
NewTLSEndpoint creates new TLSEndpoint instance.
If port number is empty, set DefaultPortNumber instead.
package source
import (
	"crypto/tls"
	"crypto/x509"
	"strings"
)
var (
	defaultTLSConfig = tls.Config{InsecureSkipVerify: true}
	DefaultPortNumber = "443"
)
type TLSEndpoint struct {
	Hostname string
	Port     string
}