program

package
v0.0.0-...-5b10583 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearTerminal

func ClearTerminal()

func ConfigureDefaultPeerConnection

func ConfigureDefaultPeerConnection(peerConnection *webrtc.PeerConnection)

func ConfigureReceiverPeerConnection

func ConfigureReceiverPeerConnection(peerConnection *webrtc.PeerConnection, offer Offer)

func ConfigureSenderPeerConnection

func ConfigureSenderPeerConnection(peerConnection *webrtc.PeerConnection, chunks [][]byte)

func RunApp

func RunApp()

Types

type Config

type Config struct {
	Servers []webrtc.ICEServer `json:"servers"`
}

func CreateDefaultConfig

func CreateDefaultConfig(configPath string) *Config

func ReadConfig

func ReadConfig() *Config

type FileData

type FileData struct {
	Metadata Metadata `json:"metadata"`
	Data     []byte   `json:"data"`
}

type Metadata

type Metadata struct {
	FileName string `json:"filename"`
	FileSize int64  `json:"filesize"`
}

type Offer

type Offer struct {
	Description    webrtc.SessionDescription `json:"description"`
	Metadata       Metadata                  `json:"metadata"`
	NumberOfChunks int
}

Jump to

Keyboard shortcuts

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