Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileServer ¶
type FileServer struct { Address string TLSConfig *tls.Config QuicConfig *quic.Config Sessions map[int64]*quic.Session Listener quic.Listener Ctx context.Context }
FileServer ..
func NewFileServer ¶
func NewFileServer(address string, tlsConfig *tls.Config, quicConfig *quic.Config) *FileServer
NewFileServer ..
type SessionHandler ¶
type SessionHandler struct { Ctx context.Context Session quic.Session Streams map[int64]*StreamHandler }
SessionHandler ..
func NewSessionHandler ¶
func NewSessionHandler(session *quic.Session) *SessionHandler
NewSessionHandler ..
type StreamHandler ¶
type StreamHandler struct { Ctx context.Context Stream quic.Stream Reader io.Reader Writer io.Writer }
StreamHandler ..
func NewStreamHandler ¶
func NewStreamHandler(stream *quic.Stream) *StreamHandler
NewStreamHandler ..
type WriteCounter ¶
WriteCounter ..
Click to show internal directories.
Click to hide internal directories.