http2

package
v0.0.0-...-8e6527b Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseURL

func ParseURL(s string) (server, method, password string, err error)

ParseURL is ...

Types

type Handler

type Handler struct {
	// NewReqeust is ...
	NewRequest func(string, io.ReadCloser, string) *http.Request

	// Cipher is ...
	Cipher *core.Cipher
	// Client is ...
	Client http.Client
	// contains filtered or unexported fields
}

Handler is ...

func NewHandler

func NewHandler(s string, timeout time.Duration) (*Handler, error)

NewHandler is ...

func NewQUICHandler

func NewQUICHandler(s string, timeout time.Duration) (*Handler, error)

NewQUCIHandler is ...

func (*Handler) Close

func (h *Handler) Close() error

Close is ...

func (*Handler) Handle

func (h *Handler) Handle(conn gonet.Conn, tgt net.Addr) error

Handle is ...

func (*Handler) HandlePacket

func (h *Handler) HandlePacket(conn gonet.PacketConn) error

HandlePacket is ...

type NetDialer

type NetDialer struct {
	// Dialer is ...
	Dialer net.Dialer
	// Addr is ...
	Addr string
}

NetDialer is ...

func (*NetDialer) DialTLS

func (d *NetDialer) DialTLS(network, addr string, cfg *tls.Config) (conn net.Conn, err error)

Dial is ...

type PacketReader

type PacketReader struct {
	// Cipher is ...
	Cipher *core.Cipher
	// Reader is ...
	Reader gonet.PacketConn
	// contains filtered or unexported fields
}

PacketReader is ...

func NewPacketReader

func NewPacketReader(cipher *core.Cipher, conn gonet.PacketConn, timeout time.Duration) *PacketReader

NewPacketReader is ...

func (*PacketReader) Close

func (r *PacketReader) Close() error

Close is ...

func (*PacketReader) Read

func (r *PacketReader) Read(b []byte) (int, error)

Read is ...

type QUICDialer

type QUICDialer struct {
	// Addr is ...
	Addr string
}

QUICDialer is ...

func (*QUICDialer) Dial

func (d *QUICDialer) Dial(ctx context.Context, network, addr string, tlsCfg *tls.Config, cfg *quic.Config) (quic.EarlyConnection, error)

Dial is ...

type Reader

type Reader struct {
	// AEAD is ...
	cipher.AEAD

	// Cipher is ...
	Cipher *core.Cipher
	// Reader is ...
	Reader io.Reader
	// contains filtered or unexported fields
}

Reader is ...

func NewReader

func NewReader(cipher *core.Cipher, rc io.ReadCloser, tgt net.Addr) *Reader

NewReader is ...

func (*Reader) Close

func (r *Reader) Close() error

Close is ...

func (*Reader) Read

func (r *Reader) Read(b []byte) (int, error)

Read is ...

func (*Reader) Wait

func (r *Reader) Wait()

Wait is ...

Jump to

Keyboard shortcuts

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