models

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	PubKey   string `json:"pub_key"`
	PrivKey  string `json:"priv_key"`
	NickName string `json:"nickname"`
	Host     string `json:"host"`
}

Metadata is the model for metadata.json file

type RegisterRequest

type RegisterRequest struct {
	PubKey   string `json:"pub_key"`
	NickName string `json:"nickname"`
}

RegisterRequest is used to serialize the register request

type Signal

type Signal struct {
	Type string `json:"type"`
	To   string `json:"to"`
	From string `json:"from"`
	SDP  string `json:"sdp"`
}

Signal is used to define the signal msg transmitted over the network

Jump to

Keyboard shortcuts

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