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
}
QUIC implements the Transport interface to establish connections to servers using the QUIC protocol. It maintains a single connection per server, optimizing dialing times and reducing connection overhead. By leveraging streams for individual server connections, it enhances overall performance and resource utilization.
type Spectral ¶ added in v0.0.29
type Spectral struct {
// contains filtered or unexported fields
}
Spectral implements the Transport interface to establish connections to servers using Spectral. It maintains a single connection per server, optimizing dialing times and reducing connection overhead. By leveraging streams for individual server connections, it enhances overall performance and resource utilization.
func NewSpectral ¶ added in v0.0.29
NewSpectral creates a new Spectral transport instance.
type Transport ¶
type Transport interface { // Dial initiates a connection to the specified address and returns an // io.ReadWriteCloser. The provided context is used for managing // timeouts and cancellations. Dial(ctx context.Context, addr string) (io.ReadWriteCloser, error) }
Transport defines an interface for establishing server connections.