wrtcmgr

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: AGPL-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 Manager

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

Manager manages a signaling server

func NewManager

func NewManager(
	url string,
	username string,
	password string,
	ctx context.Context,
) *Manager

NewManager creates the manager

func (*Manager) CreatePersistentCommunity

func (m *Manager) CreatePersistentCommunity(community string, password string) (*persisters.Community, error)

CreatePersistentCommunity creates a persistent community, which will not be automatically deleted after the last peer leaves

func (*Manager) DeleteCommunity

func (m *Manager) DeleteCommunity(community string) error

DeleteCommunity deletes a community and kicks all peers that joined it

func (*Manager) ListCommunities

func (m *Manager) ListCommunities() ([]persisters.Community, error)

ListCommunities queries all communities

Jump to

Keyboard shortcuts

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