Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptClientTLS ¶
AdaptClientTLS adapts the TLS config for use with a client, specifically setting the NextProtos to "h3" to require HTTP/3 support.
func AttachPeer ¶
AttachPeer creates a middleware that attaches the remote address to the context with the grpc-go peer mechanism.
func BaseUrl ¶
BaseUrl constructs a URL suitable for connectrpc/HTTP3 requests. Full SCION addresses (e.g. "1-ff00:0:110,127.0.0.1:31000") are not RFC 3986 compliant. We encode the full SCION address into a valid hostname by replacing colons with dashes, dots with dashes, and the comma with an underscore:
- "1-ff00:0:110,10.0.0.1:31000" -> "https://scion4-1-ff00-0-110_10-0-0-1:31000"
- "1-ff00:0:110,[::1]:31000" -> "https://scion6-1-ff00-0-110_--1:31000"
- "1-ff00:0:110,CS" -> "https://scion-1-ff00-0-110_CS"
Types ¶
type ConnectionDispatcher ¶
type ConnectionDispatcher struct {
Listener *quic.Listener
Connect QUICConnServer
Grpc QUICConnServer
Error func(error)
}
type Dialer ¶
type Dialer = func(net.Addr, ...squic.EarlyDialerOption) squic.EarlyDialer
type HTTPClient ¶
type QUICConnServer ¶
type QUICConnServerFunc ¶
func (QUICConnServerFunc) ServeQUICConn ¶
func (f QUICConnServerFunc) ServeQUICConn(conn *quic.Conn) error
Click to show internal directories.
Click to hide internal directories.