transport

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QUIC

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

func NewQUIC

func NewQUIC(cert tls.Certificate) *QUIC

func (*QUIC) Accept

func (q *QUIC) Accept() (io.ReadWriteCloser, error)

Accept ...

func (*QUIC) Close

func (q *QUIC) Close() (err error)

Close ...

func (*QUIC) Listen

func (q *QUIC) Listen(addr string) (err error)

Listen ...

type Spectral added in v0.0.17

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

func NewSpectral added in v0.0.17

func NewSpectral() *Spectral

func (*Spectral) Accept added in v0.0.17

func (s *Spectral) Accept() (io.ReadWriteCloser, error)

Accept ...

func (*Spectral) Close added in v0.0.17

func (s *Spectral) Close() (err error)

Close ...

func (*Spectral) Listen added in v0.0.17

func (s *Spectral) Listen(addr string) (err error)

Listen ...

type Transport

type Transport interface {
	Listen(string) error
	Accept() (io.ReadWriteCloser, error)
	Close() error
}

Jump to

Keyboard shortcuts

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