quic

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

type Quic

type Quic interface {
	ListenAddrs(ctx context.Context, addrs ...string) (listenAddrs []net.Addr, err error)
	transport.Transport
	app.ComponentRunnable
}

func New

func New() Quic

Jump to

Keyboard shortcuts

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