Documentation ¶ Index ¶ func TLSConfig(certPemPath, keyPemPath, caCertPath string) (*tls.Config, error) type PktType Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func TLSConfig ¶ func TLSConfig(certPemPath, keyPemPath, caCertPath string) (*tls.Config, error) TLSConfig generates and returns a TLS configuration based on the given parameters. If certPemPath is empty, no Certificate is set on the config. If caCertPath is empty, no trust root is established and no client/serv verification is performed. Types ¶ type PktType ¶ type PktType byte PktType represents the type of a packet on the wire. const ( PktUnknown PktType = iota PktIPPkt PktLocalAddr ) Packet types Source Files ¶ View all Source files pkt.go tls.go Click to show internal directories. Click to hide internal directories.