Documentation ¶
Index ¶
Constants ¶
View Source
const ( DataChannelMTU = 16384 // 16 KB BufferedAmountLowThreshold = 1 * DataChannelMTU // 2^0 MTU MaxBufferedAmount = 8 * DataChannelMTU // 2^3 MTUs )
View Source
const DataChannelName = "oneshot"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type Configuration ¶
type Configuration struct { ICEServers []*ICEServer `yaml:"iceServers" mapstructure:"iceServers"` RelayOnly bool `yaml:"relayOnly" mapstructure:"relayOnly"` Certificates []*Certificate `yaml:"certificates" mapstructure:"certificates"` }
func (*Configuration) WebRTCConfiguration ¶
func (c *Configuration) WebRTCConfiguration() (*webrtc.Configuration, error)
type DataChannelByteReader ¶
type DataChannelByteReader struct {
datachannel.ReadWriteCloser
}
type ICEServer ¶
type ICEServer struct { URLs []string `yaml:"urls" mapstructure:"urls"` Username string `yaml:"username" mapstructure:"username"` Credential []byte `yaml:"credential" mapstructure:"credential"` CredentialPath string `yaml:"credentialPath" mapstructure:"credentialPath"` CredentialTypeIsOAuth bool `yaml:"credentialTypeIsOAuth" mapstructure:"credentialTypeIsOAuth"` }
Click to show internal directories.
Click to hide internal directories.