transport

package
v0.0.0-...-e0c7852 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrListenSchemeNotSupported = errors.New("transport: listen scheme not supported")
)

Functions

func NewListener

func NewListener(scheme, host string, u *url.Userinfo) (net.Listener, error)

Types

type DialFunc

type DialFunc func(addr string) (net.Conn, error)

func NewDialFunc

func NewDialFunc(scheme string, u *url.Userinfo) DialFunc

func WithMuxDial

func WithMuxDial(f DialFunc) DialFunc

type ListenFunc

type ListenFunc func(addr string) (net.Listener, error)

func WithMuxListen

func WithMuxListen(f ListenFunc) ListenFunc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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