Documentation ¶
Index ¶
- Variables
- type Peer
- func (p *Peer) AddICECandidate(candidateStr string) error
- func (p *Peer) Close() error
- func (p *Peer) RecvMessage(msg webrtc.DataChannelMessage)
- func (p *Peer) SendMessage(msg proxymsg.ProxyMessage) error
- func (p *Peer) SetRemoteDescription(descrStr string) error
- func (p *Peer) SetStateListener(listener StateListener)
- func (p *Peer) Start(descrStr string) (err error)
- type PeersContainer
- type ProxyMessageReceiver
- type StateListener
- type WebRTCListener
Constants ¶
This section is empty.
Variables ¶
View Source
var AlreadyStartedError = errors.New("tunnel already started")
Functions ¶
This section is empty.
Types ¶
type Peer ¶
type Peer struct { Id string AllowedLocalPorts []int AllowedAll bool // contains filtered or unexported fields }
func (*Peer) AddICECandidate ¶
func (*Peer) RecvMessage ¶
func (p *Peer) RecvMessage(msg webrtc.DataChannelMessage)
func (*Peer) SendMessage ¶
func (p *Peer) SendMessage(msg proxymsg.ProxyMessage) error
func (*Peer) SetRemoteDescription ¶
func (*Peer) SetStateListener ¶
func (p *Peer) SetStateListener(listener StateListener)
type PeersContainer ¶
type PeersContainer struct {
// contains filtered or unexported fields
}
func NewAllowedPeers ¶
func NewAllowedPeers() *PeersContainer
func (*PeersContainer) Add ¶
func (a *PeersContainer) Add(id string, peer *Peer)
func (*PeersContainer) Get ¶
func (a *PeersContainer) Get(id string) *Peer
func (*PeersContainer) Remove ¶
func (a *PeersContainer) Remove(id string)
type ProxyMessageReceiver ¶
type ProxyMessageReceiver interface {
RecvMessage(msg proxymsg.ProxyMessage) error
}
type StateListener ¶
type WebRTCListener ¶
Click to show internal directories.
Click to hide internal directories.