Documentation ¶
Index ¶
- Variables
- func GenerateTLSConfig() *tls.Config
- func SyncTransport(stream quic.Stream, handler transport.HandleFunc, msg proto.Message) (*transport.Transport, error)
- type Dialer
- type DialerConfig
- type DialerStreamHandleFunc
- type Listener
- type ListenerCloseHandleFunc
- type ListenerConfig
- type ListenerRegionsHandleFunc
- type ListenerRegisterHandleFunc
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GenerateTLSConfig ¶
Setup a bare-bones TLS config for the server. From `https://github.com/quic-go/quic-go/blob/master/example/echo/echo.go`.
func SyncTransport ¶
func SyncTransport(stream quic.Stream, handler transport.HandleFunc, msg proto.Message) (*transport.Transport, error)
Sends message, handles response and abandons the connection.
Types ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
func NewDialer ¶
func NewDialer( config DialerConfig, streamHandler DialerStreamHandleFunc, ) *Dialer
type DialerConfig ¶
type DialerStreamHandleFunc ¶
type DialerStreamHandleFunc func(quic.Stream) error
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
func NewListener( ctx context.Context, config ListenerConfig, registerHandler ListenerRegisterHandleFunc, regionsHandler ListenerRegionsHandleFunc, closeHandler ListenerCloseHandleFunc, ) *Listener
type ListenerCloseHandleFunc ¶
type ListenerCloseHandleFunc func(uint64)
type ListenerConfig ¶
type ListenerConfig struct {
Addr string
}
Click to show internal directories.
Click to hide internal directories.