Documentation ¶
Index ¶
- func New() transports.Transport
- func NewWithAlternative(alternative transports.Transport) transports.Transport
- type AlternativeConfig
- type Client
- type ClientConfig
- type Config
- type ConnectionIDGenerator
- type Dialer
- type DialerConfig
- type Printf
- type QuicConfig
- type Server
- type Transport
- func (tr *Transport) Construct(options transports.Options) (err error)
- func (tr *Transport) Dial(address []byte) (client transports.Client, err error)
- func (tr *Transport) ListenAndServe() (err error)
- func (tr *Transport) Name() (name string)
- func (tr *Transport) Port() (port int)
- func (tr *Transport) Shutdown(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() transports.Transport
func NewWithAlternative ¶
func NewWithAlternative(alternative transports.Transport) transports.Transport
Types ¶
type AlternativeConfig ¶
type AlternativeConfig struct { Name string `json:"name"` Options json.RawMessage `json:"options"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientConfig ¶
type ClientConfig struct { MaxConnsPerHost int `json:"maxConnsPerHost"` MaxResponseHeaderSize string `json:"maxResponseHeaderSize"` Timeout string `json:"timeout"` Dialer DialerConfig `json:"dialer"` }
func (*ClientConfig) MaxConnectionsPerHost ¶
func (config *ClientConfig) MaxConnectionsPerHost() (n int)
func (*ClientConfig) MaxResponseHeaderByteSize ¶
func (config *ClientConfig) MaxResponseHeaderByteSize() (n uint64, err error)
func (*ClientConfig) TimeoutDuration ¶
func (config *ClientConfig) TimeoutDuration() (n time.Duration, err error)
type Config ¶
type Config struct { EnableDatagrams bool `json:"enableDatagrams"` MaxRequestHeaderSize string `json:"maxRequestHeaderSize"` MaxRequestBodySize string `json:"maxRequestBodySize"` AdditionalSettings map[uint64]uint64 `json:"additionalSettings"` Quic *QuicConfig `json:"quic"` Client ClientConfig `json:"client"` Alternative AlternativeConfig `json:"alternative"` }
func (*Config) ClientConfig ¶
func (config *Config) ClientConfig() (clientConfig ClientConfig)
func (*Config) QuicConfig ¶
type ConnectionIDGenerator ¶
type ConnectionIDGenerator struct { }
func (*ConnectionIDGenerator) ConnectionIDLen ¶
func (generator *ConnectionIDGenerator) ConnectionIDLen() int
func (*ConnectionIDGenerator) GenerateConnectionID ¶
func (generator *ConnectionIDGenerator) GenerateConnectionID() (id quic.ConnectionID, err error)
type DialerConfig ¶ added in v1.2.41
type QuicConfig ¶
type QuicConfig struct { Versions []string `json:"versions"` HandshakeIdleTimeout string `json:"handshakeIdleTimeout"` MaxIdleTimeout string `json:"maxIdleTimeout"` InitialStreamReceiveWindow string `json:"initialStreamReceiveWindow"` MaxStreamReceiveWindow string `json:"maxStreamReceiveWindow"` InitialConnectionReceiveWindow string `json:"initialConnectionReceiveWindow"` MaxConnectionReceiveWindow string `json:"maxConnectionReceiveWindow"` MaxIncomingStreams int64 `json:"maxIncomingStreams"` MaxIncomingUniStreams int64 `json:"maxIncomingUniStreams"` KeepAlivePeriod string `json:"keepAlivePeriod"` DisablePathMTUDiscovery bool `json:"disablePathMtuDiscovery"` Allow0RTT bool `json:"allow0RTT"` }
func (*QuicConfig) Convert ¶
func (config *QuicConfig) Convert(enableDatagrams bool) (quicConfig *quic.Config, err error)
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
func (*Transport) Construct ¶
func (tr *Transport) Construct(options transports.Options) (err error)
func (*Transport) Dial ¶
func (tr *Transport) Dial(address []byte) (client transports.Client, err error)
func (*Transport) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.