datachannel

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2018 License: MIT Imports: 1 Imported by: 51

Documentation

Index

Constants

View Source
const (
	PayloadTypeString = iota + 1
	PayloadTypeBinary
)

PayloadType enums

Variables

This section is empty.

Functions

This section is empty.

Types

type Payload

type Payload interface {
	PayloadType() PayloadType
}

Payload is the body of a DataChannel message

type PayloadBinary

type PayloadBinary struct {
	Data []byte
}

PayloadBinary is a binary DataChannel message

func (PayloadBinary) PayloadType

func (p PayloadBinary) PayloadType() PayloadType

PayloadType returns the type of payload

type PayloadString

type PayloadString struct {
	Data []byte
}

PayloadString is a string DataChannel message

func (PayloadString) PayloadType

func (p PayloadString) PayloadType() PayloadType

PayloadType returns the type of payload

type PayloadType

type PayloadType int

PayloadType are the different types of data that can be represented in a DataChannel message

func (PayloadType) String

func (p PayloadType) String() string

Jump to

Keyboard shortcuts

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