webtrans

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

func NewSession

func NewSession(id string, quicSession quic.Session, signal *Signal) *Session

func (*Session) Close

func (s *Session) Close()

func (*Session) Emit

func (s *Session) Emit(header string, body string) error

func (*Session) HandleBidStream

func (s *Session) HandleBidStream(origin, path string)

func (*Session) HandleWebTrans

func (s *Session) HandleWebTrans()

HandleWebTrans 处理webTransport相关逻辑

func (*Session) ID

func (s *Session) ID() string

func (*Session) On

func (s *Session) On(header string, cb proto.SessionCallback)

type Signal

type Signal struct {
	// contains filtered or unexported fields
}

func NewSignal

func NewSignal(port int, certFile, keyFile string) *Signal

func (*Signal) OnAuth added in v0.0.3

func (s *Signal) OnAuth(cb proto.AuthCallback)

func (*Signal) OnClose

func (s *Signal) OnClose(cb proto.SignalCallback)

func (*Signal) OnConnect

func (s *Signal) OnConnect(cb proto.SignalCallback)

func (*Signal) Run

func (s *Signal) Run() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL