Documentation ¶
Index ¶
- func Bind(host *string, port *string) (net.Listener, error)
- func Connect(host *string, port *string) (net.Conn, error)
- func CreateCertificate(template *x509.Certificate) ([]byte, *rsa.PrivateKey, error)
- func CreateMasterSlaveCertificateTemplate() *x509.Certificate
- func CreateMasterTLSConfiguration() (*tls.Config, error)
- func CreateSlaveTLSConfiguration() (*tls.Config, error)
- func CreateSocketConnectionReaderWriter(connection net.Conn) (*bufio.Reader, *bufio.Writer)
- func CreateTLSConfiguration(template *x509.Certificate) (*tls.Config, error)
- func GetIPv6(rawIPv6Host []byte) string
- func Receive(connectionReader *bufio.Reader, bufferSize int) (int, []byte, error)
- func Send(connectionWriter *bufio.Writer, data *[]byte) (int, error)
- func TLSConnect(host *string, port *string, configuration *tls.Config) (net.Conn, error)
- func UpgradeClientToTLS(connection net.Conn, configuration *tls.Config) net.Conn
- func UpgradeServerToTLS(connection net.Conn, configuration *tls.Config) net.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
func CreateCertificate(template *x509.Certificate) ([]byte, *rsa.PrivateKey, error)
func CreateMasterSlaveCertificateTemplate ¶
func CreateMasterSlaveCertificateTemplate() *x509.Certificate
func CreateTLSConfiguration ¶
func CreateTLSConfiguration(template *x509.Certificate) (*tls.Config, error)
func TLSConnect ¶
func UpgradeClientToTLS ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.