utils

package
v0.0.0-...-fe67b83 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssignLTIV1CustomParams

func AssignLTIV1CustomParams(params *url.Values, claims *plugnmeet.LtiClaims)

func GenerateRandomStrings

func GenerateRandomStrings(n int) string

func GenerateSecureRandomStrings

func GenerateSecureRandomStrings(n int) (string, error)

func GetFilesFromDir

func GetFilesFromDir(path, ext, s string) ([]string, error)

func PrepareCommonWebhookNotifyEvent

func PrepareCommonWebhookNotifyEvent(event *livekit.WebhookEvent) *plugnmeet.CommonNotifyEvent

func PrepareDefaultRoomFeatures

func PrepareDefaultRoomFeatures(r *plugnmeet.CreateRoomReq)

func PrepareLTIV1RoomCreateReq

func PrepareLTIV1RoomCreateReq(c *plugnmeet.LtiClaims) *plugnmeet.CreateRoomReq

func SendCommonProtoJsonResponse

func SendCommonProtoJsonResponse(c *fiber.Ctx, s bool, m string) error

func SendCommonProtobufResponse

func SendCommonProtobufResponse(c *fiber.Ctx, s bool, m string) error

func SendProtoJsonResponse

func SendProtoJsonResponse(c *fiber.Ctx, res proto.Message) error

func SendProtobufResponse

func SendProtobufResponse(c *fiber.Ctx, res proto.Message) error

func SetCreateRoomDefaultValues

func SetCreateRoomDefaultValues(r *plugnmeet.CreateRoomReq, maxSize uint64, allowedTypes []string, allowedNotepad bool)

func SetDefaultRoomSettings

func SetDefaultRoomSettings(s *RoomDefaultSettings, r *plugnmeet.CreateRoomReq)

func SetRoomDefaultLockSettings

func SetRoomDefaultLockSettings(r *plugnmeet.CreateRoomReq)

Types

type RoomDefaultSettings

type RoomDefaultSettings struct {
	MaxParticipants *uint32 `yaml:"max_participants"`
	MaxDuration     *uint64 `yaml:"max_duration"`
}

Jump to

Keyboard shortcuts

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