bbb

package
v0.0.0-...-0dfd330 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2025 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// General errors
	ErrInvalidURL          = "invalid_url"
	ErrInvalidResponse     = "invalid_response"
	ErrRequestFailed       = "request_failed"
	ErrUnauthorized        = "unauthorized"
	ErrNotFound            = "not_found"
	ErrInternalServerError = "internal_server_error"

	// API specific errors
	ErrChecksumMismatch = "checksum_mismatch"
	ErrMissingParam     = "missing_parameter"
	ErrInvalidParam     = "invalid_parameter"
)

Common error codes and messages.

Variables

This section is empty.

Functions

func IsError

func IsError(err error, code string) bool

IsError checks if the error is a BigBlueButton error with the given code.

Types

type Client

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

Client represents a BigBlueButton API client.

func NewClient

func NewClient(baseURL, secret string, options ...Option) (*Client, error)

NewClient creates a new BigBlueButton API client.

func NewTestClient

func NewTestClient(t *testing.T, handler http.HandlerFunc) *Client

NewTestClient creates a new test client with the provided handler.

func (*Client) CreateHook

CreateHook creates a new webhook If MeetingID is empty, creates a permanent hook that receives all events

func (*Client) CreateMeeting

CreateMeeting creates a new meeting with the specified parameters.

func (*Client) DeleteRecordings

func (c *Client) DeleteRecordings(ctx context.Context, recordID string) (*responses.DeleteRecordingsResponse, error)

DeleteRecordings deletes a recording.

func (*Client) DestroyHook

func (c *Client) DestroyHook(ctx context.Context, hookID string) (*responses.DestroyHookResponse, error)

DestroyHook removes a webhook

func (*Client) EndMeeting

EndMeeting ends a running meeting.

func (*Client) GetMeetingInfo

func (c *Client) GetMeetingInfo(ctx context.Context, meetingID, password string) (*responses.GetMeetingInfoResponse, error)

GetMeetingInfo retrieves information about a specific meeting.

func (*Client) GetMeetings

func (c *Client) GetMeetings(ctx context.Context) (*responses.GetMeetingsResponse, error)

GetMeetings retrieves a list of all running meetings.

func (*Client) GetRecordings

GetRecordings retrieves recordings that are available for playback.

func (*Client) IsMeetingRunning

func (c *Client) IsMeetingRunning(ctx context.Context, meetingID string) (bool, error)

IsMeetingRunning checks if a meeting is running.

func (*Client) JoinMeeting

func (c *Client) JoinMeeting(ctx context.Context, req *requests.JoinMeetingRequest) (string, error)

JoinMeeting generates a join URL for a meeting.

func (*Client) ListHooks

func (c *Client) ListHooks(ctx context.Context) (*responses.HooksResponse, error)

ListHooks retrieves all webhooks

func (*Client) ListHooksForMeeting

func (c *Client) ListHooksForMeeting(ctx context.Context, meetingID string) (*responses.HooksResponse, error)

ListHooksForMeeting retrieves all webhooks for a specific meeting

func (*Client) PublishRecordings

PublishRecordings publishes or unpublishes a recording.

func (*Client) UpdateHook

func (c *Client) UpdateHook(ctx context.Context, hookID string, updates map[string]string) (*responses.CreateHookResponse, error)

UpdateHook updates an existing webhook

func (*Client) UpdateRecordings

UpdateRecordings updates a recording's metadata.

type Error

type Error struct {
	Code    string
	Message string
}

Error represents a BigBlueButton API error.

func NewError

func NewError(code, message string) *Error

NewError creates a new Error with the given code and message.

func (*Error) Error

func (e *Error) Error() string

Error implements the error interface.

type Option

type Option func(*Client) error

Option configures a Client.

func WithHTTPClient

func WithHTTPClient(httpClient *http.Client) Option

WithHTTPClient sets the HTTP client for the BigBlueButton client.

func WithTimeout

func WithTimeout(timeout time.Duration) Option

WithTimeout sets the timeout for the HTTP client.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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