Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApplicationError ¶
type ApplicationError int64
type QuicAPI ¶
type QuicAPI interface { // TODO: there might be a use for contexts here OnNewConnection(conn QuicConn) OnCanceledConn(conn QuicConn) OnNewBiStream(conn QuicConn, stream QuicBiStream) OnReadBiStream(conn QuicConn, stream QuicBiStream, data io.Reader) OnNewUniStream(conn QuicConn, id StreamId) OnReadUniStream(conn QuicConn, id StreamId, data io.Reader) }
type QuicBiStream ¶
type QuicBiStream interface { QuicUniStream WriteFin() Close(reason ApplicationError) CloseRead(reason ApplicationError) CloseWrite(reason ApplicationError) }
Streams can send data
type QuicConfig ¶
type QuicConfig struct { MaxBiStreams uint64 MaxUniStreams uint64 IdleTimeout time.Duration HandshakeTimeout time.Duration }
TODO: add this to the adapter constructors
type QuicConn ¶
type QuicConn interface { fmt.Stringer LocalAddress() string RemoteAddress() string Close(reason ApplicationError) CreateUniStream(streamType StreamType) (QuicUniStream, error) }
type QuicServer ¶
type QuicServer interface {
Listen() error
}
type QuicUniStream ¶
type StreamType ¶
type StreamType int8
Click to show internal directories.
Click to hide internal directories.