quic

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultOptions = &Options{}

DefaultOptions default quic options

Functions

func New

func New() transport.Factory

New quic transport factory

func WithOptions

func WithOptions(option *Options) transport.Option

WithOptions to wrap the quic options

Types

type Options

type Options struct {
	CertFile        string       `json:"certFile"`
	KeyFile         string       `json:"keyFile"`
	ReadBufferSize  int          `json:"readBufferSize"`
	WriteBufferSize int          `json:"writeBufferSize"`
	Config          *quic.Config `json:"-"`
	TLS             *tls.Config  `json:"-"`
}

Options to define the quic

func FromContext

func FromContext(ctx context.Context, def *Options) *Options

FromContext to unwrap the quic options

func (*Options) Apply

func (o *Options) Apply() *Options

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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