webrtc

package
v3.4.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	ReqHandler internal.HTTPHandler
}

func (*Channel) DeleteApplication

func (wrtc *Channel) DeleteApplication(
	ctx context.Context,
	applicationID string,
) (respDetails models.ResponseDetails, err error)

func (*Channel) GenerateToken

func (wrtc *Channel) GenerateToken(
	ctx context.Context,
	req models.GenerateWebRTCTokenRequest,
) (resp models.GenerateWebRTCTokenResponse, respDetails models.ResponseDetails, err error)

func (*Channel) GetApplication

func (wrtc *Channel) GetApplication(
	ctx context.Context,
	applicationID string,
) (resp models.GetWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

func (*Channel) GetApplications

func (wrtc *Channel) GetApplications(
	ctx context.Context,
) (resp models.GetWebRTCApplicationsResponse, respDetails models.ResponseDetails, err error)

func (*Channel) SaveApplication

func (wrtc *Channel) SaveApplication(
	ctx context.Context,
	application models.WebRTCApplication,
) (resp models.SaveWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

func (*Channel) UpdateApplication

func (wrtc *Channel) UpdateApplication(
	ctx context.Context,
	applicationID string,
	application models.WebRTCApplication,
) (resp models.UpdateWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

type WebRTC

type WebRTC interface {
	// GetApplications returns a list of all applications for WebRTC channel.
	GetApplications(
		ctx context.Context,
	) (resp models.GetWebRTCApplicationsResponse, respDetails models.ResponseDetails, err error)

	// SaveApplication creates and configures a new WebRTC application.
	SaveApplication(
		ctx context.Context,
		application models.WebRTCApplication,
	) (resp models.SaveWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

	// GetApplication returns a single WebRTC application to see its configuration details.
	GetApplication(
		ctx context.Context,
		applicationID string,
	) (resp models.GetWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

	// UpdateApplication changes configuration details of your existing WebRTC application.
	UpdateApplication(
		ctx context.Context,
		applicationID string,
		application models.WebRTCApplication,
	) (resp models.UpdateWebRTCApplicationResponse, respDetails models.ResponseDetails, err error)

	// DeleteApplication deletes WebRTC application for a given id.
	DeleteApplication(
		ctx context.Context,
		applicationID string,
	) (respDetails models.ResponseDetails, err error)

	// GetToken generates and returns token for WebRTC channel.
	GenerateToken(
		ctx context.Context,
		req models.GenerateWebRTCTokenRequest,
	) (resp models.GenerateWebRTCTokenResponse, respDetails models.ResponseDetails, err error)
}

Jump to

Keyboard shortcuts

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