network

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, endpoint string, cred *tls.Config) (*tls.Conn, error)

Connect establish a tls connection to the endpoint with nagle enabled.

func Listen

func Listen(ctx context.Context, host string, cred *tls.Config) (*tls.Conn, error)

Listen listens to a tcp connection to host and returns a nagle enabled tls connection

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL