Documentation ¶
Overview ¶
Package util provides auxiliary utilities used in examples
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chat ¶
func Chat(conn io.ReadWriter)
Chat simulates a simple text chat session over the connection
func LoadCertificate ¶
func LoadCertificate(path string) (*tls.Certificate, error)
LoadCertificate Load/read certificate(s) from file
func LoadKeyAndCertificate ¶
func LoadKeyAndCertificate(keyPath string, certificatePath string) (tls.Certificate, error)
LoadKeyAndCertificate reads certificates or key from file
Types ¶
Click to show internal directories.
Click to hide internal directories.