client

package
v0.0.0-...-88b4fc5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PQuic      = "quic"
	PQuicEarly = "quic_e"
	PUdp       = "udp"
	PTcp       = "tcp"
	PTls       = "tls"
	PHttp3     = "http3"
	PHttp      = "http"
)

Variables

This section is empty.

Functions

func MakeClientQuicConf

func MakeClientQuicConf() *quic.Config

Types

type Client

type Client interface {
	Start() error
}

func NewClient

func NewClient(protocol, addr string) Client

type Http3Client

type Http3Client struct {
	// contains filtered or unexported fields
}

func NewHttp3Client

func NewHttp3Client(addr string) *Http3Client

func (*Http3Client) Start

func (c *Http3Client) Start() error

type HttpClient

type HttpClient struct {
	// contains filtered or unexported fields
}

func NewHttpClient

func NewHttpClient(addr string) *HttpClient

func (*HttpClient) Start

func (c *HttpClient) Start() error

type QuicClient

type QuicClient struct {
	// contains filtered or unexported fields
}

func NewQuicClient

func NewQuicClient(addr string) *QuicClient

func (*QuicClient) Start

func (c *QuicClient) Start() error

func (*QuicClient) Stop

func (c *QuicClient) Stop()

type QuicEarlyClient

type QuicEarlyClient struct {
	// contains filtered or unexported fields
}

func NewQuicEarlyClient

func NewQuicEarlyClient(addr string) *QuicEarlyClient

func (*QuicEarlyClient) Start

func (c *QuicEarlyClient) Start() error

type TcpClient

type TcpClient struct {
	// contains filtered or unexported fields
}

func NewTcpClient

func NewTcpClient(addr string) *TcpClient

func (*TcpClient) Start

func (c *TcpClient) Start() error

type TlsClient

type TlsClient struct {
	// contains filtered or unexported fields
}

func NewTlsClient

func NewTlsClient(addr string) *TlsClient

func (*TlsClient) Start

func (c *TlsClient) Start() error

type UdpClient

type UdpClient struct {
	// contains filtered or unexported fields
}

func NewUdpClient

func NewUdpClient(addr string) *UdpClient

func (*UdpClient) Start

func (c *UdpClient) Start() error

Jump to

Keyboard shortcuts

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