message

package
v0.0.0-...-04a39ef Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const CONNECT_FAIL string = "CONNECTION_FAIL"
View Source
const CONNECT_REQ string = "CONNECT_REQ"

Signal connection messages

View Source
const CONNECT_SIGNAL string = "CONNECT_SIGNAL"
View Source
const DISCONNECT_REQ string = "DISCONNECT_REQ"
View Source
const DISCONNECT_SIGNAL string = "DISCONNECT_SIGNAL"
View Source
const ICE_SIGNAL string = "ICE_SIGNAL"
View Source
const OFFER_ACC string = "OFFER_ACC"
View Source
const OFFER_REQ string = "OFFER_REQ"

Offer connection category

View Source
const SKIP_REQ string = "SKIP_REQ"

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	From        string          `json:"from,omitempty"`
	To          string          `json:"to"`
	Category    string          `json:"category,omitempty"`
	MessageType MessageCategory `json:"messageType"`
	Content     interface{}     `json:"content"`
}

type MessageCategory

type MessageCategory string
const CHAT MessageCategory = "CHAT"
const ID MessageCategory = "ID"
const OFFER MessageCategory = "OFFER"
const SIGNAL MessageCategory = "SIGNAL"

Message categories

Jump to

Keyboard shortcuts

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