Documentation ¶
Index ¶
- func GetDefaultStunHosts() (string, error)
- func NewDCConn(channel *webrtc.DataChannel) io.ReadWriteCloser
- func UUID() (string, error)
- type Answer
- type AnswerCandidate
- type AnswerCompleted
- type AnswerFailed
- type Conn
- type Connect
- type Connections
- type Node
- func (n *Node) Close() error
- func (n *Node) Connect(peer string) (*Conn, error)
- func (n *Node) Members() (*signaling.Members, error)
- func (n *Node) Room() string
- func (n *Node) Send(dest string, v signaling.Kinder) error
- func (n *Node) Start(owner bool) error
- func (n *Node) Stop() error
- func (n *Node) User() string
- type Offer
- type OfferCandidate
- type OfferCompleted
- type OfferFailed
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct { *webrtc.PeerConnection // contains filtered or unexported fields }
Conn ...
func (*Conn) AppendIceCandidate ¶
func (p *Conn) AppendIceCandidate(ic *webrtc.IceCandidate)
AppendIceCandidate ...
func (*Conn) OnDataChannel ¶
func (p *Conn) OnDataChannel(fn func(dc *webrtc.DataChannel))
OnDataChannel ...
func (*Conn) SetDataChannel ¶
func (p *Conn) SetDataChannel(dc *webrtc.DataChannel)
SetDataChannel ...
type Connections ¶
Connections ...
type Node ¶
type Node struct { Clients *Connections // 接続元 Servers *Connections // 接続先 OnJoin func(member string) OnLeave func(member string) OnPeerConnection func(string, *Conn) error // contains filtered or unexported fields }
Node ...
Click to show internal directories.
Click to hide internal directories.