bigbluebutton

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHTTP      = errors.New("http error, see logs")
	ErrDecodeXML = errors.New("couldn't parse xml")
)
View Source
var (
	ErrInvalidMeeting    = errors.New("the meeting does not exist or is not flagged for recording")
	ErrInvalidContext    = errors.New("can't find the selenium driver in the context")
	ErrSeleniumGet       = errors.New("selenium couldn't get url")
	ErrSeleniumTimeout   = errors.New("selenium had a timeout waiting on something")
	ErrSeleniumClickFail = errors.New("selenium failed to click an existing element")
	ErrUnknownRecState   = errors.New("couldn't figure out in which state the recording is")
)
View Source
var (
	ErrInvalidURL = errors.New("the configured bigbluebutton server uri is invalid")
)

Functions

This section is empty.

Types

type BBB

type BBB struct {
	Config  *models.BigBlueButton
	BaseUrl *url.URL
	Logger  echo.Logger
}

func New

func New(logger echo.Logger, config *models.BigBlueButton) (*BBB, error)

func (*BBB) AddChecksum

func (bbb *BBB) AddChecksum(endpoint string, values *url.Values)

AddChecksum adds the checksum for a specific endpoint to an url.Values

func (*BBB) GetMeetingInfo

func (bbb *BBB) GetMeetingInfo(meetingID string) (*MeetingInfo, error)

GetMeetingInfo produces a request ready url to GET `getMeetingInfo` with.

func (*BBB) IsRecordingRunning

func (bbb *BBB) IsRecordingRunning(wp worker.Pool, meetingId string) (bool, error)

func (*BBB) IsValid

func (bbb *BBB) IsValid(endpoint string, values *url.Values) bool

IsValid checks if an url.Values contains a valid checksum for a given endpoint

func (*BBB) Join

func (bbb *BBB) Join(fullName, meetingID string) string

Join produces a request ready url to GET `join` with.

func (*BBB) PauseRecording

func (bbb *BBB) PauseRecording(wp worker.Pool, meetingId string) (bool, error)

type MeetingInfo

type MeetingInfo struct {
	XMLName    xml.Name `xml:"response"`
	ReturnCode *string  `xml:"returncode"`
	MessageKey *string  `xml:"messageKey"`
	Recording  *bool    `xml:"recording"`
}

Jump to

Keyboard shortcuts

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