Documentation
¶
Index ¶
- type Session
- func (s *Session) Close(closehandler bool)
- func (s *Session) Connect(paths []string) error
- func (s *Session) CreateConnection() error
- func (s *Session) CreateControlChannel() error
- func (s *Session) CreateTransferChannel(path string, i int) error
- func (s *Session) Createoffer() error
- func (s *Session) HandleState()
- func (s *Session) Handleclose() func()
- func (s *Session) Handleopen() func()
- func (s *Session) SendPacket(proxyReader io.ReadCloser, doc *lib.Document) error
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
}
To manage the datachannels and PeerConnection.
func NewSession ¶
Returns new Session object with some default values.
func (*Session) CreateConnection ¶
Creates WebRTC PeerConnection.
func (*Session) CreateControlChannel ¶
Creates control datachannel for communicating consent and signaling.
func (*Session) CreateTransferChannel ¶
Creates Datachannel for file transfer.
func (*Session) Createoffer ¶
Creates offer and encodes it in base64.
func (*Session) Handleclose ¶
func (s *Session) Handleclose() func()
Handle the closing of control channel.
func (*Session) SendPacket ¶
Sends the packet.
Click to show internal directories.
Click to hide internal directories.