desktop

package
v0.0.0-...-3cc6eee Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

App struct

func NewApp

func NewApp() *App

NewApp creates a new App application struct

func (*App) BeforeClose

func (a *App) BeforeClose(ctx context.Context) (prevent bool)

BeforeClose is called when the application is about to quit, either by clicking the window close button or calling runtime.Quit. Returning true will cause the application to continue, false will continue shutdown as normal.

func (*App) GetCurrentOS

func (a *App) GetCurrentOS() string

func (*App) NotifyCloseClient

func (a *App) NotifyCloseClient()

func (*App) NotifyCreateClient

func (a *App) NotifyCreateClient()

func (*App) Shutdown

func (a *App) Shutdown(ctx context.Context)

Shutdown is called at application termination

func (*App) Startup

func (a *App) Startup(ctx context.Context)

Startup is called at application Startup

func (*App) TryClosePeerConnection

func (a *App) TryClosePeerConnection() bool

Closes the peer connection and returns a boolean indication if a connection existed and was closed or not

func (*App) TryCreateHost

func (a *App) TryCreateHost(ICEServers []webrtc.ICEServer, offerEncoded string) (value string)

Create a Host Peer, it receives the offer encoded and returns the encoded answer response

Jump to

Keyboard shortcuts

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