transports

package
v0.0.0-...-5e83f8a Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLS

type TLS struct {
	*tls.Conn
	// contains filtered or unexported fields
}

func NewTLS

func NewTLS(trans Transport, tlsConfig *tls.Config) (*TLS, error)

func (*TLS) Flush

func (t *TLS) Flush() error

type Transport

type Transport interface {
	net.Conn

	Flush() error
}

func NewBuffered

func NewBuffered(trans Transport, bufferSize int) Transport

func NewSocket

func NewSocket(hostPort string, timeout time.Duration) (Transport, error)

func NewZlib

func NewZlib(trans Transport, level int) (Transport, error)

Jump to

Keyboard shortcuts

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