outgoing

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2020 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientAnswer

type ClientAnswer P2PMessage

func (ClientAnswer) Type

func (ClientAnswer) Type() string

type ClientICE

type ClientICE P2PMessage

func (ClientICE) Type

func (ClientICE) Type() string

type ClientSession

type ClientSession struct {
	ID         xid.ID      `json:"id"`
	Peer       xid.ID      `json:"peer"`
	ICEServers []ICEServer `json:"iceServers"`
}

func (ClientSession) Type

func (ClientSession) Type() string

type ConnectionMode

type ConnectionMode string
const (
	ConnectionLocal ConnectionMode = "local"
	ConnectionSTUN  ConnectionMode = "stun"
	ConnectionTURN  ConnectionMode = "turn"
)

type HostICE

type HostICE P2PMessage

func (HostICE) Type

func (HostICE) Type() string

type HostOffer

type HostOffer P2PMessage

func (HostOffer) Type

func (HostOffer) Type() string

type HostSession

type HostSession struct {
	ID         xid.ID      `json:"id"`
	Peer       xid.ID      `json:"peer"`
	ICEServers []ICEServer `json:"iceServers"`
}

func (HostSession) Type

func (HostSession) Type() string

type ICEServer

type ICEServer struct {
	URLs       []string `json:"urls"`
	Credential string   `json:"credential"`
	Username   string   `json:"username"`
}

type Message

type Message interface {
	Type() string
}

type P2PMessage

type P2PMessage struct {
	SID   xid.ID          `json:"sid"`
	Value json.RawMessage `json:"value"`
}

type Room

type Room struct {
	ID    string         `json:"id"`
	Mode  ConnectionMode `json:"mode"`
	Users []User         `json:"users"`
}

func (Room) Type

func (Room) Type() string

type User

type User struct {
	ID      xid.ID `json:"id"`
	Name    string `json:"name"`
	Sharing bool   `json:"sharing"`
	You     bool   `json:"you"`
	Owner   bool   `json:"owner"`
}

Jump to

Keyboard shortcuts

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