yamux

package
v0.4.22-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "net.transport.yamux"

Variables

This section is empty.

Functions

func NewMultiConn

func NewMultiConn(cctx context.Context, luConn *connutil.LastUsageConn, addr string, sess *yamux.Session) transport.MultiConn

Types

type Config

type Config struct {
	ListenAddrs        []string `yaml:"listenAddrs"`
	WriteTimeoutSec    int      `yaml:"writeTimeoutSec"`
	DialTimeoutSec     int      `yaml:"dialTimeoutSec"`
	KeepAlivePeriodSec int      `yaml:"keepAlivePeriodSec"`
}

type Yamux

type Yamux interface {
	transport.Transport
	AddListener(lis net.Listener)
	app.ComponentRunnable
}

Yamux implements transport.Transport with tcp+yamux

func New

func New() Yamux

Jump to

Keyboard shortcuts

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