Versions in this module Expand all Collapse all v1 v1.0.0 Aug 4, 2022 Changes in this version + type CertFile struct + Data []byte + Path string + type QuicConfig quic.Config + type ReceiveStream struct + func (s *ReceiveStream) Read(p []byte) (int, error) + type SendStream struct + func (s *SendStream) Write(p []byte) (int, error) + type Server struct + AllowedOrigins []string + ListenAddr string + QuicConfig *QuicConfig + TLSCert CertFile + TLSKey CertFile + func (s *Server) Run(ctx context.Context) error + type Session struct + ClientControlStream quic.ReceiveStream + ServerControlStream quic.SendStream + Session quic.Session + func (s *Session) AcceptSession() + func (s *Session) AcceptStream() (Stream, error) + func (s *Session) AcceptUniStream(ctx context.Context) (ReceiveStream, error) + func (s *Session) CloseSession() + func (s *Session) CloseWithError(code quic.ApplicationErrorCode, str string) + func (s *Session) Context() context.Context + func (s *Session) OpenStream() (Stream, error) + func (s *Session) OpenStreamSync(ctx context.Context) (Stream, error) + func (s *Session) OpenUniStream() (SendStream, error) + func (s *Session) OpenUniStreamSync(ctx context.Context) (SendStream, error) + func (s *Session) ReceiveMessage(ctx context.Context) ([]byte, error) + func (s *Session) RejectSession(errorCode int) + func (s *Session) SendMessage(msg []byte) error + type Stream quic.Stream